nginx default server not used

rj nginx-forum at
Sun Feb 19 19:23:32 UTC 2012


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
nginx config:

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.

Posted at Nginx Forum:,222679,222679#msg-222679

More information about the nginx mailing list