2 messages in ru.sysoev.nginxlocation into location doen't work as...
FromSent OnAttachments
Daniele MelosiApr 7, 2009 8:04 am 
Igor SysoevApr 7, 2009 8:09 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:location into location doen't work as expectedActions...
From:Daniele Melosi (ml@melosi.it)
Date:Apr 7, 2009 8:04:17 am
List:ru.sysoev.nginx

Hi all,

I've the following location configuration that doesn't work as expected (i symplified my configuration with return value instead of rewrite):

location ^~ /image/ { location ^~ /image/(halfcol|medium|thumb)/ { return 402; } location ^~ /image/ { return 403; } }

if i tried to get a /image/halfcol/something i expected to received a 402 return code.

$ HEAD http://localhost/image/halfcol/pippo.jpg | head -n1 403 Forbidden

I got a 403 instead :(

Thanks in advance Daniele