Welcome! Log In Create A New Profile

Advanced

Re: correct usage of location context?

June 13, 2009 12:53AM
On Fri, Jun 12, 2009 at 11:01:57PM +0200, Szymon Polom wrote:

> Igor Sysoev wrote:
>
> >On Fri, Jun 12, 2009 at 06:05:34PM +0200, Szymon Polom wrote:
> >As it was already said by Cliff:
>
> [...]
>
> As someone on #nginx pointed out I was actually looking for location +
> alias not for location + root.

You should not use "alias" there, where "root" is enough. If you use

location /test/ {
alias /var/www/test/;
}

then

location /test/ {
root /var/www;
}

is just the some, but more efficient.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

correct usage of location context?

Szymon Polom June 12, 2009 12:05PM

Re: correct usage of location context?

lejeczek June 12, 2009 01:23PM

Re: correct usage of location context?

Cliff Wells June 12, 2009 01:54PM

Re: correct usage of location context?

Szymon Polom June 12, 2009 02:31PM

Re: correct usage of location context?

Nick Pearson June 12, 2009 02:57PM

Re: correct usage of location context?

Cliff Wells June 12, 2009 03:15PM

Re: correct usage of location context?

Szymon Polom June 12, 2009 03:35PM

Re: correct usage of location context?

Cliff Wells June 12, 2009 03:07PM

Re: correct usage of location context?

Szymon Polom June 12, 2009 02:01PM

Re: correct usage of location context?

Igor Sysoev June 12, 2009 03:18PM

Re: correct usage of location context?

Szymon Polom June 12, 2009 05:01PM

Re: correct usage of location context?

Igor Sysoev June 13, 2009 12:53AM

Re: correct usage of location context?

Avleen Vig June 13, 2009 10:46AM

Re: correct usage of location context?

Szymon Polom June 13, 2009 11:18AM

Re: correct usage of location context?

Rob Schultz June 12, 2009 09:35PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
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