我正在使用Nginx搭建一个简单的演示网站,我只是按照如下方式配置了Nginx:
server {
listen 80;
server_name www.abc.com;
location / {
index index.html;
root /home/www.abc.com/;
}
}
在我的 www.abc.com
文件夹中,有一个名为 Sub
的子文件夹,里面有一个 index.html
文件。所以当我尝试访问 www.abc.com/Sub/index.html
时,它可以正常工作。如果我访问 www.abc.com/sub/index.html
,则返回 404
。如何配置 Nginx 以在 URL 中忽略大小写?