nginx + php-fpm "modern configuration way"

Grégory Pakosz gpakosz at
Tue Apr 3 18:56:12 UTC 2012

Thank you all for your reply

So, adding
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;

doesn't really hurt.

The box I'm running does shared hosting for a couple of users and I don't
really know in advance what they want to install on their account.
I'm going to keep those 3 lines in hope it helps some php scripts out there
to run correctly.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list