Commit 4bf956bd authored by Fabien Potencier's avatar Fabien Potencier

merged branch davedevelopment/override-script-filename (PR #531)

This PR was merged into the master branch.

Commits
-------

236ef89b Set SCRIPT_FILENAME after including params

Discussion
----------

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.

---------------------------------------------------------------------------

by igorw at 2012-11-06T14:21:18Z

Confirmed, ubuntu sets it:

    fastcgi_param   SCRIPT_FILENAME         $request_filename;
parents 8dc4ee2f 236ef89b
...@@ -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