Welcome! Log In Create A New Profile

Advanced

Re: location case sensitivity

June 28, 2010 07:22AM
On Sun, Jun 27, 2010 at 05:17:43PM -0400, JCR wrote:

> 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 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 Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

location case sensitivity

JCR June 27, 2010 05:17PM

Re: location case sensitivity

Igor Sysoev June 28, 2010 07:22AM

Re: location case sensitivity

Mark Rogers June 28, 2010 08:04AM

Re: location case sensitivity

JCR June 28, 2010 08:33AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready