Having this simple nginx configuration:
location / {
return 200 "Location 1\n";
}
location ~ \.php$ {
return 200 "Location 2\n";
}
location /tmp {
return 200 "Location 3\n";
location ~ \.php$ {
return 200 "Location 3a\n";
}
}
Why the /tmp/foo.php
requests gives the Location 3a
response, though according the documentation, the regex location Location 2
should overtake the request unless the prefix location Location 3
has the ^~
modifier?