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