Possible bug with location parse order

Hello,

I’m running 0.5.32. I’ve noticed that regex locations are matched
against the request URI before string based locations regardless of the
order they are defined in the configuration.

Example:

location /foo {}

location ~ /foo.* {}

the second one is the only one that will be parsed.

Thanks.

Hello!

On Sun, 9 Dec 2007, Adam M. wrote:

the second one is the only one that will be parsed.
Try reading this:

http://wiki.codemongers.com/NginxHttpCoreModule#location

Maxim D.