location regex issue

Boyko Yordanov b.yordanov at exsisto.com
Fri Apr 15 13:23:06 MSD 2011


On Apr 15, 2011, at 12:18 PM, Edho P Arief wrote:

>> I have the following location config:
>> 
>> location ~* (^/browse/$) {
>> 
>> And this seems to catch URls like /browse/?page=35 and similar.
>> 
>> In my understanding the $ (end of line) symbol should make this location work only for /browse/ and nothing more.. or am I wrong?
>> 
> 
> anything past ? (and ? itself) is argument hence not checked when
> matching location block.

Got u, thanks!

Then how am I supposed to achieve what I'm after? I need to make this location work for /browse/ only and not for /browse/?args

Boyko


More information about the nginx mailing list