Possible bug with -f test

bkirkbri nginx-forum at nginx.us
Fri Jun 11 01:50:16 MSD 2010


Igor Sysoev Wrote:
> "root" is good and safe directive. It works with
> all these "if"s.
> 
> "alias" is more generic than "root": you can
> always describe "root" mapping
> via "alias":
> 
>    location /dir/ {
>        root  /path/to;
>    }
> 
> is the same as
> 
>    location /dir/ {
>        alias /path/to/dir/;
>    }
> 
> But not opposite, for example, you can not
> describe this
> 
>    location /dir1/ {
>        alias /path/to/dir2/;
>    }
> 
> using "root". I use "root" always if it's
> possible.
> 
> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/


Excellent, thank you for the help.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,96823,96910#msg-96910




More information about the nginx mailing list