Location Alias not working

İhsan Doğan ihsan at dogan.ch
Sat Aug 27 08:38:27 UTC 2016


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 at dogan.ch        http://blog.dogan.ch/

More information about the nginx mailing list