Redirect without changing base server name??

Igor Sysoev is at rambler-co.ru
Wed May 14 22:56:34 MSD 2008


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