# Are fastcgi\_params case-sensitive

**URL:** <https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519>\
**Category:** NGINX\
**Created:** [November 2, 2010, 11:19pm UTC](https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519 "2010-11-02T23:19:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 2, 2010, 11:19pm UTC](https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519/1 "2010-11-02T23:19:28Z")

</div>

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?

–  
Frank C.

=======================  
[http://devblog.brahmancreations.com](http://devblog.brahmancreations.com)

---

<div class="post-metadata">

**Author:** ![vfcforums](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Post date:** [November 3, 2010, 12:31am UTC](https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519/2 "2010-11-03T00:31:01Z")

</div>

On Tue, 02 Nov 2010 18:17:54 -0400, Frank C. 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  
> 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.

> **[RFC 3875: The Common Gateway Interface (CGI) Version 1.1 | RFC Editor](https://www.rfc-editor.org/info/rfc3875/)**
>
> The Common Gateway Interface (CGI) is a simple interface for running external programs, software or gateways under an information server in a platform-independent manner. Currently, the supported information servers are HTTP servers.
> 
> The interface...

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](http://forum.nginx.org/read.php?2,147047,147059#msg-147059)

---

<div class="post-metadata">

**Author:** ![vfcforums](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Post date:** [November 3, 2010, 12:37am UTC](https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519/3 "2010-11-03T00:37:18Z")

</div>

Hello!

On Tue, Nov 02, 2010 at 10:17:54PM +0000, Frank C. wrote:

> Has it always been this way?

nginx doesn’t care what you wrote, it just passes key-value pairs  
you specified to your fastcgi application (backend).

Maxim D.

---

<div class="post-metadata">

**Author:** ![vfcforums](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Post date:** [November 3, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519/4 "2010-11-03T17:31:17Z")

</div>

On 2 November 2010 22:17, Frank C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Has it always been this way?
> 
> –  
> Frank C.
> 
> =======================  
> [http://devblog.brahmancreations.com](http://devblog.brahmancreations.com)

> From the responses I suspect that the php-cgi is looking for arrays with  
> case-sensitive keys.

I will check when time allows.

Thanks

–  
Frank C.

=======================  
[http://devblog.brahmancreations.com](http://devblog.brahmancreations.com)

---

<div class="post-metadata">

**Author:** ![vfcforums](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Post date:** [November 3, 2010, 12:42am UTC](https://www.ruby-forum.com/t/are-fastcgi-params-case-sensitive/198519/5 "2010-11-03T00:42:56Z")

</div>

Shouldn’t that be Os-dependant?  
Has anyone tested on Windows?

–  
Mars 2 Stay!

> **[Golden Hammer](https://xkcd.com/801/)**
>
> Took me five tries to find the right one, but I managed to salvage our night out--if not the boat--in the end.

/etc
