Very wierd config error..

alexscott nginx-forum at nginx.us
Fri Apr 13 11:02:45 UTC 2012


Hello!
I'm sorry to bother the forum with these kind of questions, but I simply
can't figure out what I'm doing wrong here:

When I access sub.domain.net/ I still get the 502 error instead of being
served from the /somefolder/stuff folder?....

server {
	listen 80;
	server_name sub.domain.net;

location = / {
root /somefolder/stuff;
index index.html index.htm;

}

location / {

return 502;

}

}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,225300,225300#msg-225300



More information about the nginx mailing list