Are fastcgi_params case-sensitive

helen nginx-forum at
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'
> until I realized that the script_filename must be specified in upper
> 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.

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[.]


Posted at Nginx Forum:,147047,147059#msg-147059

More information about the nginx mailing list