Multiple vhosts

khine nginx-forum at nginx.us
Tue Apr 5 23:34:32 MSD 2011


perhaps:

http {
  index index.html;
 
  server {
    server_name www.domain1.com;
    access_log logs/domain1.access.log main;
 
    root /www/;
  }
 
  server {
    server_name www.domain2.com;
    access_log  logs/domain2.access.log main;
 
    root /www/x;
  }
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,188059,188587#msg-188587




More information about the nginx mailing list