nginx is too greedy with urls

shiz nginx-forum at
Fri Apr 29 18:03:19 UTC 2016

If you're from the apache world, nginx configuration if often

Does the following help?

# To find location matching a given request, nginx first checks locations
# using the prefix strings (prefix locations). Among them, the location with
# longest matching prefix is selected and remembered.
# Then regular expressions are checked, in the order of their appearance in
# the configuration file.
# The first matching expression stops the search and nginx will use this
# If the longest matching prefix location has the '^~' modifier then
# expressions are not checked.
# Also, using the '=' modifier it is possible to define an exact match of
# and location. If an exact match is found, the search terminates.

Posted at Nginx Forum:,266524,266527#msg-266527

More information about the nginx mailing list