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