I am using Nginx for a simple demo website, and I just configure the Nginx like this:
server {
listen 80;
server_name www.abc.com;
location / {
index index.html;
root /home/www.abc.com/;
}
}
In my www.abc.com
folder, I have sub-folder named Sub
, and inside has index.html
file. So when I try to visit www.abc.com/Sub/index.html
, then it works fine. If I visit www.abc.com/sub/index.html
, it returns 404
.
How to configure the Nginx to case-insensitive in URL?