Guest User

Untitled

a guest
Nov 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ## @fernandos
  2. location ~ \.php($|/) {
  3. set $script $uri;
  4. set $path_info "";
  5.  
  6. if ($uri ~ "^(.+\.php)(/.+)") {
  7. set $script $1;
  8. set $path_info $2;
  9. }
  10. fastcgi_pass 127.0.0.1:9000;
  11. fastcgi_index index.php;
  12.  
  13. include /etc/nginx/fastcgi_params;
  14. fastcgi_param URI $uri;
  15. fastcgi_param PATH_INFO $path_info;
  16. fastcgi_param SCRIPT_NAME $script;
  17. fastcgi_param SCRIPT_FILENAME /srv/www/blablabla.com/public_html$s$
  18. #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19. }
Add Comment
Please, Sign In to add comment