Guest User

Untitled

a guest
Jul 8th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server ipv6only=on;
  4.  
  5. root /usr/share/nginx/sean.taipei;
  6. index index.php index.html index.htm;
  7.  
  8. server_name sean.taipei www.sean.taipei;
  9.  
  10. location / {
  11. try_files $uri $uri/ =404;
  12. }
  13.  
  14. location ~ \.php$ {
  15. try_files $uri =404;
  16. fastcgi_split_path_info ^(.+\.php)(/.+)?$;
  17. fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  18. fastcgi_index index.php;
  19. include fastcgi_params;
  20. }
  21.  
  22. location ~ /\.ht {
  23. deny all;
  24. }
  25.  
  26. location ~ /\.git {
  27. deny all;
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment