managing many server names

Patrick Aljord patcito at
Tue Nov 17 07:48:49 MSK 2009


I have my site config that looks like this:

server {
        listen   80;
        server_name *;
        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

Thanks in advance,


More information about the nginx mailing list