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.