Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. set $index "index.php";
  2.  
  3. location ~ /index.php$ {
  4. include /etc/nginx/fastcgi_params;
  5.  
  6. # fastcgi_pass unix:/var/run/php5-fpm.sock;
  7. fastcgi_keep_conn on;
  8. fastcgi_intercept_errors on;
  9.  
  10. fastcgi_pass 127.0.0.1:9000;
  11.  
  12. fastcgi_index $index;
  13. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14. }
  15.  
  16. location / {
  17. if ($request_uri !~ (/static/)){
  18. rewrite ^/(.*)$ /$index?/$1 last;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement