Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1.  
  2.  
  3. server {
  4. listen 80;
  5. server_name ssh.example.org;
  6. access_log /srv/www/ssh.example.org/logs/access.log;
  7. error_log /srv/www/ssh.example.org/logs/error.log;
  8. root /srv/www/ssh.example.org/public_html;
  9. index index.php index.html index.htm;
  10.  
  11. location ~ ^/~([^/]*)(.*)\.php$ {
  12. include /etc/nginx/fastcgi_params;
  13. fastcgi_pass 127.0.0.1:9000;
  14. fastcgi_index index.php;
  15. fastcgi_param SCRIPT_FILENAME /srv/www/ssh.example.org/public_html$fastcgi_script_name;
  16. }
  17. }
  18.  
  19. location ~ ^/~([^/]*)(.*) {
  20. autoindex on;
  21. alias /home/$1/public_html$2;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement