Advertisement
Guest User

Untitled

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