Are fastcgi_params case-sensitive

helen nginx-forum at nginx.us
Wed Nov 3 02:29:38 MSK 2010


On Tue, 02 Nov 2010 18:17:54 -0400, Frank Church  wrote:

> I have spent a few hours trying to debug 'No input file specified'
errors
> until I realized that the script_filename must be specified in upper
case
>
> ie,
>
> fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
>
> rather than
>
> fastcgi_param  script_filename  $document_root$fastcgi_script_name;
>
>
> Has it always been this way?
>

On the one hand, it appears to be a bug.  On the other, I don't think
it's a bug in nginx.  The FastCGI is just receiving the variables over
the socket, including SCRIPT_FILENAME.  It would therefore be a bug in
the program receiving from the CGI side (I'm guessing PHP?).  By the
way, SCRIPT_FILENAME is not a standard CGI meta-variable.

http://tools.ietf.org/html/rfc3875#section-4.1

4.1.  Request Meta-Variables

   Meta-variables contain data about the request passed from the server
   to the script, and are accessed by the script in a system-defined
   manner.  Meta-variables are identified by case-insensitive names[.]

helen

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,147047,147059#msg-147059




More information about the nginx mailing list