Welcome! Log In Create A New Profile

Advanced

nginx default server not used

rj
February 19, 2012 02:23PM
Hi,

I am currently evaluating nginx as an apache replacement and came across some (at least for me) odd behavior and hope someone can explain to me what is happening.

nginx is ignoring my default server and instead picks a directory of a deleted server as the default. If I point some random domain at the server address for which no server configuration exists, nginx servers the directory of the removed server config instead the on defined as the default server.

OS: Debian Squeeze
nginx version: nginx/1.0.12 dotdeb repository http://pastebin.com/JGVA7NnZ
nginx config: http://pastebin.com/UFEuCPEG

The directory served by nginx as the default is not mentioned anywhere in /etc/nginx. I added it previously as an additional server but have deleted it. Somehow nginx still remembers the server and servers it as the default for unknown server names.
Subject Author Posted

nginx default server not used

rj February 19, 2012 02:23PM

Re: nginx default server not used

Maxim Dounin February 19, 2012 04:04PM

Re: nginx default server not used

rj February 19, 2012 04:17PM

Re: nginx default server not used

Nginx User February 19, 2012 05:14PM

Re: nginx default server not used

rj February 20, 2012 01:41AM

Re: nginx default server not used

valinor June 09, 2012 04:41AM

Re: nginx default server not used

Ruslan Ermilov June 13, 2012 02:14AM

Re: nginx default server not used

Edho Arief February 19, 2012 08:18PM

Re: nginx default server not used

rj February 20, 2012 01:33AM



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