Welcome! Log In Create A New Profile

Advanced

Re: Server Name Issue

December 19, 2009 12:42AM
UPDATE:

>Probably, you should say wordpress about SERVER_NAME:
>fastcgi_param SERVER_NAME $host;

It worked!

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.

I guess I should have cleared cache at that time!

Thanks all! :-)
--
Rahul Bansal | Founder & CEO | rtCamp Solutions Pvt. Ltd.
Mobile: +91-9860501882 | Web: http://rtcamp.com/



On Sun, Dec 13, 2009 at 2:56 PM, Rahul Bansal <rahul286@gmail.com> wrote:

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

Server Name Issue

Rahul Bansal December 07, 2009 06:40AM

Re: Server Name Issue

merlin corey December 11, 2009 07:26PM

Re: Server Name Issue

rahul286 December 12, 2009 12:56PM

Re: Server Name Issue

Igor Sysoev December 12, 2009 03:12PM

Re: Server Name Issue

rahul286 December 13, 2009 02:48AM

Re: Server Name Issue

Igor Sysoev December 13, 2009 02:56AM

Re: Server Name Issue

rahul286 December 13, 2009 04:32AM

Re: Server Name Issue

rahul286 December 19, 2009 12:42AM

Re: Server Name Issue

Marcus Clyne December 14, 2009 02:52AM

Re: Server Name Issue

Linmiao Xu December 14, 2009 02:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready