Best way to handle preprod server_names

Greg greg at
Fri May 18 07:24:41 UTC 2012

Le 16/05/2012 18:47, B.R. a écrit :
> Hello,
> Typically, I would use one directory per host to serve content from 
> each domain and use one config file per generic type:


thanks, but I can as I have to _migrate_ the actual config.
I'm going to generate server_name config in separates files, then 
include them in server {} config like :

server {
     server_name; # main domain
     include prod_domains.conf;
     include commonrules.conf;
     include prod_rules.conf;
server {
     server_name; # main domain
     include preprod_domains.conf;
     include commonrules.conf;
     include preprod_rules.conf;

But the server_names list will be huge...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list