Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Case Sensitivity issue in Nginx

$
0
0
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?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>