Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location / {
- root /opt/webapp/htdocs;
- index index.php;
- # if file exists return it right away
- if (-f $request_filename) {
- break;
- }
- # otherwise rewrite the fucker
- if (!-e $request_filename) {
- rewrite ^(.+)$ /index.php last;
- break;
- }
- }
- # if the request starts with our frontcontroller, pass it on to fastcgi
- location ~ index.php$
- {
- include /opt/nginx/0.7.65/conf/fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME /opt/webapp/htdocs$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_script_name;
- fastcgi_param QUERY_STRING $query_string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement