Problem solved. It seems that one has to set a default server by declaring: listen 80 default_server; This seems a bit odd though. nginx should not choose a random server to redirect all stray requests to by default...by Windlord - Other discussion
Hello Nginx users. I was setting up my first Nginx server a few moments ago, and found a very strange problem. Just to let you all know, I have set a wildcard A-record for my domain and therefore all subdomains point towards my Nginx server. I have several subdomains set up for my own purposes and have them all declared in the following way: server_name subdomain.domain.tld; root /var/wwwby Windlord - Other discussion