目前 Nginx 模块配置如下:
location ^~ /jenkins
location ^~ /upload
location = / {
root html;
index welcome.html;
}
location ^~ /image/
为什么我请求 xxx.com/index.html 居然可以请求成功(可以访问 html/index.html ),= 不应该是精准匹配吗?按我理解应该返回 404 not found 吧?
location ^~ /jenkins
location ^~ /upload
location = / {
root html;
index welcome.html;
}
location ^~ /image/
为什么我请求 xxx.com/index.html 居然可以请求成功(可以访问 html/index.html ),= 不应该是精准匹配吗?按我理解应该返回 404 not found 吧?