Location case sensitivity

Hello

On a centos 5 box running the latest nginx, I am struggling with case
sensitivity:
I have in root the file go.html
and I want the request for file GO.html server the file go.html

I thought that
something like
45 location ~* / { 46 index index.html index.htm; 47 }
would do the trick but it doesn’t.

What are the main strategies to achieve this result?

thank you!

Posted at Nginx Forum:

On Sun, Jun 27, 2010 at 05:17:43PM -0400, JCR wrote:

45 location ~* / {
46 index index.html index.htm;
47 }
[/code]
would do the trick but it doesn’t.

What are the main strategies to achieve this result?

Unix file systems are case sensitive (except MacOS Extended file
system).
if you want to handle only several files in this way, then:

location = /GO.html {
alias /path/to/go.html;
}


Igor S.
http://sysoev.ru/en/

On 28/06/10 12:18, Igor S. wrote:

Unix file systems are case sensitive (except MacOS Extended file system).
if you want to handle only several files in this way, then:

location = /GO.html {
    alias  /path/to/go.html;
}

I’ve never tried this, but there is the “Case Insensitivity On Purpose
File System”, ciopfs:
ciopfs - case insensitive on purpose filesystem · Marc André Tanner

It’s a FUSE layer on top of your existing filesystem so may be an
option. It’s in the Ubuntu repos, not sure about others.


Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG

Hello,

I would need a more general solution to this problem (and I need to keep
my filesystem case sensitive). Sometimes, owners of websites use caps to
make their urls more readable. For instance, they would write “website:
www.gallery.com/TheArtClub.html” on their business card. Of course, it
is sometimes difficult to anticipate their usage of capital letters. And
I find it difficult to explain them that they should never user capital
letters in print materials…

Posted at Nginx Forum: