Welcome! Log In Create A New Profile

Advanced

location into location doen't work as expected

This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Daniele Melosi
April 07, 2009 11:04AM
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
Subject Author Posted

location into location doen't work as expected

Daniele Melosi April 07, 2009 11:04AM

Re: location into location doen't work as expected

Igor Sysoev April 07, 2009 11:09AM



Online Users

Guests: 313
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready