possible bug with location parse order

Maxim Dounin mdounin at mdounin.ru
Sun Dec 9 12:56:39 MSK 2007


Hello!

On Sun, 9 Dec 2007, Adam Michaels wrote:

> 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.

Try reading this:

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

Maxim Dounin





More information about the nginx mailing list