works great! thanks!<br><br><div class="gmail_quote">On Dec 7, 2007 11:19 PM, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> 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>> 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>> What do I set in server_name so that all sub-domain requests go to that<br>> server?<br>><br>> xxx.domain2.com-> domain2
<br>> thanks<br>><br>><br>> server {<br>> listen 80;<br>> server_name <a href="http://domain1.com" target="_blank">domain1.com</a>;<br>><br>><br>> server {<br>> listen 80;
<br>> server_name <a href="http://domain2.com" target="_blank">domain2.com</a>;<br><br></div></div>If you do not need redirect, then:<br><br> server_name <a href="http://domain2.com" target="_blank">domain2.com
</a> *.domain2.com;<br><br>or (better):<br><br> server_name .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>