Welcome! Log In Create A New Profile

Advanced

v1.0.4, bugreport: location directive

ruv
June 16, 2011 11:36AM
Простейшая тестовая конфигурация (прямо по доке)

index index.html ;
location = / {
}
location / {
rewrite ^ / redirect ;
}

Из-за чего выдает редирект при запросе "/"? При запросе корня должен отдать index.html (точное совпадение для первого location), а на все остальные запросы должен сделать редирект на корень (это работает).


Другой эпизод:

location / {
rewrite ^ / redirect ;
}
location /test {
rewrite ^ /unavailable.gif ;
}

При запросе "/test" делает редирект на корень (срабатывает первый location?), вместо отдачи unavailable.gif. А должен сработать второй location, как более длинное совпадение, и отдать картинку.

--
Ruvim
Subject Author Posted

v1.0.4, bugreport: location directive

ruv June 16, 2011 11:36AM

Re: v1.0.4, bugreport: location directive

Alexander Kochetov June 16, 2011 12:04PM

Re: v1.0.4, bugreport: location directive

ruv June 16, 2011 12:20PM

Re: v1.0.4, bugreport: location directive

Igor Sysoev June 16, 2011 02:16PM

Re: v1.0.4, bugreport: location directive

Alexander Moskalenko June 16, 2011 04:10PM

Re: v1.0.4, bugreport: location directive

ruv June 19, 2011 05:46PM

Re: v1.0.4, bugreport: location directive

Sergey Shepelev June 19, 2011 06:12PM

Re: v1.0.4, bugreport: location directive

ruv June 16, 2011 12:08PM

Re: v1.0.4, bugreport: location directive

ruv June 28, 2011 11:47AM

Re: v1.0.4, bugreport: location directive

Igor Sysoev June 28, 2011 11:56AM

Re: v1.0.4, bugreport: location directive

ruv June 28, 2011 12:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 119
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready