Welcome! Log In Create A New Profile

Advanced

root works, alias doesn't

Grant
September 25, 2013 02:16PM
Can anyone tell me why this works:

root /var/www/localhost/htdocs;
location / {
root /var/www/localhost/htdocs/webalizer/;
}

And this doesn't:

root /var/www/localhost/htdocs;
location / {
alias /webalizer/;
}

I get:

"/webalizer/index.html" is not found (2: No such file or directory)

/var/www/localhost/htdocs/webalizer/index.html does exist.

- Grant

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

root works, alias doesn't

Grant September 25, 2013 02:16PM

Re: root works, alias doesn't

B.R. September 25, 2013 02:28PM

Re: root works, alias doesn't

Grant September 29, 2013 01:34PM

Re: root works, alias doesn't

B.R. September 29, 2013 03:22PM

Re: root works, alias doesn't

Grant October 01, 2013 03:14AM

Re: root works, alias doesn't

Valentin V. Bartenev October 01, 2013 10:10AM

Re: root works, alias doesn't

Grant October 02, 2013 12:24PM

Re: root works, alias doesn't

Valentin V. Bartenev October 02, 2013 02:24PM

Re: root works, alias doesn't

Grant October 02, 2013 03:04PM

Re: root works, alias doesn't

Valentin V. Bartenev October 01, 2013 09:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 47
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready