Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2. server {
  3. listen 80;
  4. server_name ssh.example.org;
  5. access_log /srv/www/ssh.example.org/logs/access.log;
  6. error_log /srv/www/ssh.example.org/logs/error.log;
  7.  
  8. index index.php index.html index.htm;
  9.  
  10. location / {
  11. # For everything else
  12. root /srv/www/ssh.example.org/public_html;
  13. }
  14. location ~ ^/~(?<d>[^/]*)(?<f>.*)? {
  15. alias "/home/$d/public_html$f";
  16. location ~ \.php {
  17. root "/home/$d/public_html";
  18. include fastcgi_params;
  19. fastcgi_param SCRIPT_FILENAME $document_root$f;
  20. fastcgi_pass unix:/shm/php-fpm.sock;
  21.  
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement