works great! thanks!<br><br><div class="gmail_quote">On Dec 7, 2007 11:19 PM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Fri, Dec 07, 2007 at 06:53:03PM -0800, <a href="mailto:rkmr.em@gmail.com">rkmr.em@gmail.com</a> wrote:<br><br>&gt; I have this config and, <a href="http://www.domain2.com" target="_blank">
www.domain2.com</a> goes to <a href="http://domain1.com" target="_blank">domain1.com</a><br>&gt; What do I set in server_name so that all sub-domain requests go to that<br>&gt; server?<br>&gt;<br>&gt; xxx.domain2.com-&gt; domain2
<br>&gt; thanks<br>&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; server {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; &nbsp; &nbsp; 80;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;<a href="http://domain1.com" target="_blank">domain1.com</a>;<br>&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; server {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; &nbsp; &nbsp; 80;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;<a href="http://domain2.com" target="_blank">domain2.com</a>;<br><br></div></div>If you do not need redirect, then:<br><br> &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;<a href="http://domain2.com" target="_blank">domain2.com
</a> &nbsp;*.domain2.com;<br><br>or (better):<br><br> &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;.domain2.com;<br><font color="#888888"><br><br>--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br><br></font>
</blockquote></div><br>