<div>UPDATE:</div><div><br></div>&gt;Probably, you should say wordpress about SERVER_NAME:<br>&gt;fastcgi_param  SERVER_NAME        $host;<div><br></div><div>It worked!</div><div><br></div><div>I came to resolve issue again and saw it has solved. Last thing I changed on last weekend was &quot;fastcgi_param  SERVER_NAME        $host;&quot; line.</div>

<div><br></div><div>I guess I should have cleared cache at that time!</div><div><br></div><div>Thanks all! :-)<br clear="all">--<br>Rahul Bansal | Founder &amp; CEO | rtCamp Solutions Pvt. Ltd.<br>Mobile: +91-9860501882 | Web: <a href="http://rtcamp.com/">http://rtcamp.com/</a><br>

<br>
<br><br><div class="gmail_quote">On Sun, Dec 13, 2009 at 2:56 PM, Rahul Bansal <span dir="ltr">&lt;<a href="mailto:rahul286@gmail.com">rahul286@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Igor,<br>
<div class="im"><br>
&gt;Probably, you should say wordpress about SERVER_NAME:<br>
&gt;fastcgi_param  SERVER_NAME        $host;<br>
<br>
</div>Practically it didnt work. :-(<br>
Logically I expected it to work.<br>
<br>
I will dig into wordpress to see what is the problem.<br>
<br>
Thanks,<br>
<font color="#888888">-Rahul<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Sun, Dec 13, 2009 at 1:21 PM, Igor Sysoev &lt;<a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a>&gt; wrote:<br>
&gt; On Sun, Dec 13, 2009 at 01:12:12PM +0530, Rahul Bansal wrote:<br>
&gt;<br>
&gt;&gt; Hi Igor,<br>
&gt;&gt;<br>
&gt;&gt; &gt; &gt; For some reason that I cannot explain (lack of my knowledge may be) I need<br>
&gt;&gt; &gt; &gt; server_name to reflect http_host value.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Where do you use this server_name ?<br>
&gt;&gt;<br>
&gt;&gt; I am not using &quot;server_name&quot; explicitly anywhere.<br>
&gt;&gt;<br>
&gt;&gt; Earlier some logs and a cookies my PHP site showing host part as &quot;_&quot;<br>
&gt;&gt; when I set &quot;server_name _&quot;.<br>
&gt;&gt;<br>
&gt;&gt; Now I removed server_name and set &quot;server_name_in_redirect off&quot;<br>
&gt;&gt; Now host is being set to <a href="http://maindomain.com" target="_blank">maindomain.com</a> even though HOSTs are<br>
&gt;&gt; <a href="http://site1.com" target="_blank">site1.com</a>, <a href="http://site2.com" target="_blank">site2.com</a> and so on.<br>
&gt;&gt;<br>
&gt;&gt; Basically I&#39;m using wordpress MU with domain mapping.<br>
&gt;&gt;<br>
&gt;&gt; So any random domain can be served from my server as long as it has<br>
&gt;&gt; account in MU and proper CNAME record at its DNS end.<br>
&gt;<br>
&gt; Probably, you should say wordpress about SERVER_NAME:<br>
&gt;<br>
&gt; fastcgi_param  SERVER_NAME        $host;<br>
&gt;<br>
&gt; in fastcgi_params files.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Igor Sysoev<br>
&gt; <a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; nginx mailing list<br>
&gt; <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
&gt; <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
&gt;<br>
</div></div></blockquote></div><br></div>