Commit 236ef89b authored by Dave Marshall's avatar Dave Marshall

Set SCRIPT_FILENAME after including params

I think that some versions or distributions of nginx set SCRIPT_FILENAME in the
fastcgi_params file (certainly ubuntu/debian), overriding anything previously set.
parent 8dc4ee2f
...@@ -61,10 +61,10 @@ resources to ``index.php``: ...@@ -61,10 +61,10 @@ resources to ``index.php``:
location @site { location @site {
fastcgi_pass unix:/var/run/php-fpm/www.sock; fastcgi_pass unix:/var/run/php-fpm/www.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_param SCRIPT_FILENAME $document_root/index.php;
#uncomment when running via https #uncomment when running via https
#fastcgi_param HTTPS on; #fastcgi_param HTTPS on;
include fastcgi_params;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment