Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. location / {
  2. try_files $uri /index.php?$args;
  3. }
  4.  
  5. location ~ [^/]\.php(/|$) {
  6. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  7. if (!-f $document_root$fastcgi_script_name) {
  8. return 404;
  9. }
  10.  
  11. fastcgi_pass 127.0.0.1:9002;
  12. fastcgi_read_timeout 600;
  13. fastcgi_index index.php;
  14. include /etc/nginx/fastcgi_params;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement