Welcome! Log In Create A New Profile

Advanced

Very wierd config error..

April 13, 2012 07:02AM
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;

}

}
Subject Author Posted

Very wierd config error..

alexscott April 13, 2012 07:02AM

Re: Very wierd config error..

Maxim Dounin April 13, 2012 07:12AM

Re: Very wierd config error..

kolbyjack April 13, 2012 08:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
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