Welcome! Log In Create A New Profile

Advanced

Location Alias not working

İhsan Doğan
August 27, 2016 04:40AM
Hi,

I've defined a location alias in my nginx.conf:

server {
listen 80;
server_name example.org www.example.org;
[...]
location /foo/ {
alias /var/www/foo/;
}
}


Even the directory /var/www/foo exists, Nginx is returns a 404. As I
understand, the configuration is right, but I can't see what's wrong.

Any ideas?



Ihsan

--
ihsan@dogan.ch http://blog.dogan.ch/

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

Location Alias not working

İhsan Doğan August 27, 2016 04:40AM

Re: Location Alias not working

Francis Daly August 27, 2016 04:52PM

Re: Location Alias not working

Andrew Holway August 27, 2016 05:20PM

Re: Location Alias not working

Francis Daly August 27, 2016 06:54PM

Re: Location Alias not working

İhsan Doğan August 28, 2016 01:02PM

Re: Location Alias not working

Edho Arief August 28, 2016 01:50PM

Re: Location Alias not working

Francis Daly August 28, 2016 07:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 278
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready