Matthew Ngaha chigga101 at
Mon Dec 9 17:03:55 UTC 2013

hi all, i just had a quick question about this example.
http {
   server {
       server_name localhost;
       root /var/www/;
        location /admin/ {
        alias /var/www/locked/;
When a request for http://localhost/ is received, files are served from the
/var/www/ folder. However, if Nginx receives a request for
http://localhost/admin/, the path used to retrieve the files is /home/website.

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/

Please can someone tell me how:
/home/   ==   /var/www/locked/ ??
I'm new to linux so maybe it's something i'm unaware of.

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

More information about the nginx mailing list