danangds

default file fastcgi-php.conf

Jul 20th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. # regex to split $uri to $fastcgi_script_name and $fastcgi_path
  2. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  3.  
  4. # Check that the PHP script exists before passing it
  5. try_files $fastcgi_script_name =404;
  6.  
  7. # Bypass the fact that try_files resets $fastcgi_path_info
  8. # see: http://trac.nginx.org/nginx/ticket/321
  9. set $path_info $fastcgi_path_info;
  10. fastcgi_param PATH_INFO $path_info;
  11.  
  12. fastcgi_index index.php;
  13. include fastcgi.conf;
Add Comment
Please, Sign In to add comment