<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I'm going to migrate a lots of vhosts from Squid+Apache2 to NginX,
step by step.<br>
First step is to migrate just NginX and few static vhosts.<br>
<br>
Actually there is ~600 domains x 5 vhosts + equivalent for preprod.
So I wrote a NginX vhost for ".mydomain1.com .mydomain2.com" and so
on with the 600 domains.<br>
<br>
Question is, how the best practices to have this domains for our
preprod which looks like ".preprod.mydomain1.com" for each domains.<br>
<br>
Preprod has specific config like gzip disabled (for internals
purpose...).<br>
<br>
Actually, prod's config looks like :<br>
<tt>server {<br>
server_name .mydomain1.com; # main domain<br>
include
/etc/nginx/domains.conf;<br>
server_name_in_redirect off;<br>
include common/prod.conf<br>
}</tt><br>
<br>
And domains.conf :<br>
<tt>server_name<br>
.mydomain1.com<br>
.mydomain2.com<br>
...<br>
;</tt><br>
<br>
Preprod could have this config :<br>
<tt>server {<br>
server_name .preprod.mydomain1.com; # main domain<br>
include
/etc/nginx/preprod_domains.conf;<br>
server_name_in_redirect off;<br>
include common/preprod.conf<br>
}</tt><br>
<br>
Which means (600 x 5 x 2) vhosts...<br>
<br>
Is there a better way ?<br>
<br>
<div class="moz-signature">-- <br>
Greg<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Document sans nom</title>
</div>
</body>
</html>