Welcome! Log In Create A New Profile

Advanced

location block, is this the intended behaviour?

November 05, 2009 03:02AM
location /
{
/some/main/root;
}

location /blah
{
/some/other/root;
}

will result in 404 when accessing www.domain.com/blah123.html even
though there's /some/main/root/blah123.html (instead it tries
/some/other/root/blah123.html)

OTOH, using

location /blah/ { ... }

will result in 404 when accessing domain.com/blah even though there's
an index in the location. (probably because it doesn't match)

of course this works as I wanted it to.

location ~ /blah($|/) { ... }

*using try_files $uri $uri/ @fallback doesn't help.

is this intended?

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Subject Author Posted

location block, is this the intended behaviour?

edogawaconan November 05, 2009 03:02AM

Re: location block, is this the intended behaviour?

Igor Sysoev November 05, 2009 03:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready