Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set $index "index.php";
- location ~ /index.php$ {
- include /etc/nginx/fastcgi_params;
- # fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_keep_conn on;
- fastcgi_intercept_errors on;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index $index;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location / {
- if ($request_uri !~ (/static/)){
- rewrite ^/(.*)$ /$index?/$1 last;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement