# Location case sensitivity

**URL:** <https://www.ruby-forum.com/t/location-case-sensitivity/190782>\
**Category:** NGINX\
**Created:** [June 27, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/location-case-sensitivity/190782 "2010-06-27T23:18:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JCR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@JCR](https://www.ruby-forum.com/u/JCR)\
**Post date:** [June 27, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/location-case-sensitivity/190782/1 "2010-06-27T23:18:44Z")

</div>

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:

> **[location case sensitivity](https://forum.nginx.org/read.php?2,103025,103025#msg-103025)**
>
> 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 \[code\] 45

---

<div class="post-metadata">

**Author:** ![JCR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@JCR](https://www.ruby-forum.com/u/JCR)\
**Post date:** [June 28, 2010, 1:19pm UTC](https://www.ruby-forum.com/t/location-case-sensitivity/190782/2 "2010-06-28T13:19:23Z")

</div>

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.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![JCR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@JCR](https://www.ruby-forum.com/u/JCR)\
**Post date:** [June 28, 2010, 1:57pm UTC](https://www.ruby-forum.com/t/location-case-sensitivity/190782/3 "2010-06-28T13:57:27Z")

</div>

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](http://www.brain-dump.org/projects/ciopfs/)

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

---

<div class="post-metadata">

**Author:** ![JCR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@JCR](https://www.ruby-forum.com/u/JCR)\
**Post date:** [June 28, 2010, 2:33pm UTC](https://www.ruby-forum.com/t/location-case-sensitivity/190782/4 "2010-06-28T14:33:46Z")

</div>

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](http://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:

> **[Re: location case sensitivity](https://forum.nginx.org/read.php?2,103025,103153#msg-103153)**
>
> 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 \[code\] 45
