<font color="#333399"><font>OK, received loud and clear!<br><br>Many thanks,</font></font><br clear="all"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font><br>
<br><br><div class="gmail_quote">On Wed, Feb 8, 2012 at 19:58, Max <span dir="ltr"><<a href="mailto:nginxyz@mail.ru">nginxyz@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
09 февраля 2012, 04:03 от "B.R." <<a href="mailto:reallfqq-nginx@yahoo.fr">reallfqq-nginx@yahoo.fr</a>>:<br>
<div class="im"><br>
> I am currently using a unique server conf for all my domains.<br>
> When I wanna restrain certain activity to certain domains (subdirectories,<br>
> URL rewriting, etc.) I do not have other choice than using 'if' on the<br>
> $host variable leading to some complications due to the unreliable nature<br>
> of the 'if' clause.<br>
> The directory from which the content is served is determined by the<br>
> hostname.<br>
><br>
> On the other side, is using several servers to listen on several domains<br>
> the best solution?<br>
<br>
</div>Using separate per-domain server configuration blocks is both<br>
more efficient and easier to configure and maintain. Using a<br>
single server configuration block for many domains requires<br>
many "if" blocks, which are computationally intensive to<br>
evaluate, so you should avoid using them whenever possible.<br>
Most of the time you'll be using "if" blocks for rewrites,<br>
so it's better to just use separate server configuration<br>
blocks with direct rewrites.<br>
<font color="#888888"><br>
Max<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></font></blockquote></div><br>