Advertisement
Guest User

Untitled

a guest
Jan 31st, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. rewrite ^([^.]*[^/])$ $1/ permanent; #redirects all requests to have trailing slash
  2.  
  3.  
  4. location ~ ./$ { rewrite ^(.+)/$ $1 last; }
  5.  
  6. location / {
  7.  
  8. try_files $uri $uri.html @php;
  9.  
  10. }
  11.  
  12.  
  13.  
  14. location @php {
  15.  
  16. try_files $uri.php $uri/index.php =404;
  17. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  18. include /etc/nginx/fastcgi_params;
  19. fastcgi_index index.php;
  20. fastcgi_param SCRIPT_FILENAME /var/www/developers/localweb$fastcgi_script_name;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement