Redirect question

Igor Sysoev igor at sysoev.ru
Fri Mar 23 15:37:39 UTC 2018


> On 23 Mar 2018, at 18:22, Friscia, Michael <michael.friscia at yale.edu> wrote:
> 
> Ok, that worked out really well. 
> 
> For anyone following I had to go here
> https://forum.nginx.org/read.php?2,279172,279176#msg-279176
> because our exchange server destroyed the sample URLs. 
> 
> But I’m not sure how the location order is mitigated. Is this because the first location match is a regex instead of just a string match?

The regex locations are checked in order of appearance.
Prefix and excact locations are checked to find the longest matching
prefix so their order has no meaning.

When you have hundreds of locations the order becomes important factor
during configuration maintainance.


-- 
Igor Sysoev
http://nginx.com



More information about the nginx mailing list