我的nginx配置如下:
server {
listen 80;
server_name localhost;
root /nginx-root/html/;
location ~ \.(png|jpg|jpeg)$ {
return 200 "OK1";
}
location ~* \.(png|jpg|jpeg)$ {
return 200 "OK2";
}
}
然后我输入“curl http://localhost/nginx.PNG”,预期返回“OK2”,但实际上是“OK1”,是不是我的电脑配置有问题?