Francis Daly francis at
Mon Dec 9 18:33:30 UTC 2013

On Mon, Dec 09, 2013 at 05:03:55PM +0000, Matthew Ngaha wrote:

Hi there,

> hi all, i just had a quick question about this example.

Where does the example come from? It may be worth asking the author to
fix it.

> http {
>    server {
>        server_name localhost;
>        root /var/www/;
>         location /admin/ {
>         alias /var/www/locked/;
>       }
>    }
> }

If you ask for http://localhost/request.html, nginx will try to
send the file /var/www/ If you ask for
http://localhost/admin/request.html, nginx will try to send the file

> my question is about the alias variable inside the location /admin/ {}
> block. It clearly shows /var/www/locked/ as its path, but when
> explained below, it says the path is /home/

The explanation is wrong.

> also the path having in it. Does this mean a directory was
> named, with the period?


Francis Daly        francis at

More information about the nginx mailing list