Welcome! Log In Create A New Profile

Advanced

Case Sensitivity issue in Nginx

Posted by imRahulSoni 
Case Sensitivity issue in Nginx
October 13, 2015 02:21AM
This is my directory structure...

html
|-- 50x.html
|-- app1
| `-- index.html
|-- app2
| |-- home.html
| `-- index.html
|-- common
| |-- app.js
| `-- index.html
`-- index.html


And this is the configuration...

server {
listen 80;
server_name 127.0.0.1 localhost;
root /etc/nginx/html;

location /app1/ {
index index.html;
}

location ~* /app2/ {
index home.html;
}
}

http://localhost/app2 > Works
http://localhost/App2 > Doesn't work

What am I doing wrong?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
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