correct usage of location context?
Igor Sysoev
is at rambler-co.ru
Sat Jun 13 08:53:59 MSD 2009
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/
More information about the nginx
mailing list