nginx config virtual hosts

rkmr.em at gmail.com rkmr.em at gmail.com
Sat Dec 8 05:53:03 MSK 2007


I have this config and, www.domain2.com goes to domain1.com
What do I set in server_name so that all sub-domain requests go to that
server?

xxx.domain2.com-> domain2
thanks


    server {
        listen       80;
        server_name  domain1.com;


    server {
        listen       80;
        server_name  domain2.com;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20071207/5539cb3f/attachment.html>


More information about the nginx mailing list