Redirect without changing base server name??

mike mike503 at gmail.com
Wed May 14 23:08:33 MSD 2008


excellent. thanks. if anyone else has anything to add/fix on it, go for it :)

http://wiki.codemongers.com/NginxHttpCoreModule#server_name_in_redirect

On 5/14/08, Igor Sysoev <is at rambler-co.ru> wrote:
> On Wed, May 14, 2008 at 11:41:59AM -0700, mike wrote:
>
> > On 5/14/08, Igor Sysoev <is at rambler-co.ru> wrote:
> >
> > >      server {
> > >           server_name_in_redirect  off;
> >
> > I was thinking this was the right parameter - but it doesn't look like
> > it's on the wiki at all. It should be listed on the
> > NginxHttpCoreModule page, correct?
>
> Yes.
>
> > If you have a sentence or two writeup, I'll update the wiki
>
> If server_name_in_redirect is on, then nginx will use the first name
> of server_name directive in redirects. If server_name_in_redirect is off,
> then nginx will use a request Host header.
>
> server_name_in_redirect can be set on http, server, and location level.
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>





More information about the nginx mailing list