Multiple server_name entries not working

gvim gvimrc at
Tue May 31 05:14:04 MSD 2011

Nginx 1.0.3

I have a virtual host file with a simple config:

server {
     listen 8080;
     root   /var/www/html/dm2011/pub;
     access_log   /var/log/nginx/access.log main;

     location / {
       index index.htm index.html;

Requests for '' return the correct index page but requests for '' return only the "Welcome to nginx!" page. I tried * also as the 2nd name but the result was the same. There are no DNS issues with both versions of the domain.


More information about the nginx mailing list