nginx and trailing slashes on $document_root?
Posted
by shadowhand
on Stack Overflow
See other posts from Stack Overflow
or by shadowhand
Published on 2010-03-23T09:19:42Z
Indexed on
2010/03/23
9:23 UTC
Read the original article
Hit count: 269
I use the following configuration for nginx: http://gist.github.com/340956
However, this configuration causes a No input file specified
error with PHP. The only way I have been able to solve it is by altering this line:
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
Note the "/" between $document_root
and $fastcgi_script_name
. I was informed that this is the wrong configuration but no one has been able to tell me exactly why my configuration requires this extra slash.
How can I get rid of that extra slash?
© Stack Overflow or respective owner