[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    managing many server names
From:       Patrick Aljord <patcito () gmail ! com>
Date:       2009-11-17 4:48:49
Message-ID: 6b6419750911162048l294cc965ka3fe8892cca9995a () mail ! gmail ! com
[Download RAW message or body]

Hi,

I have my site config that looks like this:

server {
        listen   80;
        server_name  www.foo.com *.foo.com  foo.bar.net example.com
allnginx.com foobar.com barfoo.com xyz.com yzt.net;
        access_log  /var/log/nginx/foo.access.log;
        root /home/app/foo/current/public;
}

I allow my clients to use a cname for their domains, the problem is
that my site config is going to get huge because of all the
server_name values. Is there a way to move them to another file in a
var that I would include in the site config? Or maybe a more elegant
solution?

Thanks in advance,

Pat

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic