Welcome! Log In Create A New Profile

Advanced

Re: Help noob with redirection

--[ UxBoD ]--
June 09, 2010 08:38AM
----- Original Message -----
> On Wed, Jun 09, 2010 at 01:30:47PM +0100, --[ UxBoD ]-- wrote:
>
> > ----- Original Message -----
> > > On Wed, Jun 09, 2010 at 01:19:00PM +0100, --[ UxBoD ]-- wrote:
> > >
> > > > > proxy_redirect https://pm01.domain.com/ /;
> > > > > proxy_redirect https://pm02.domain.com/ /;
> > > > >
> > > > >
> > > > Igor, that works now using the above syntax :) A question though
> > > > is there anyway to tell NGINX to redirect based on the proxied
> > > > hostname ? If we had pm01 ... 100 then I would need to add 100
> > > > proxy_redirect statements or can it be done with a clever single
> > > > line ?
> > >
> > > Currently nginx does not support variables in the first parameter,
> > > so you have to add 100 proxy_redirect statements.
> > >
> > > The other way is to configure backends to use single name as main
> > > server name
> > > to use it in redirects.
> > >
> > >
> > Sorry Igor, having a mind blank! Do you mean by using DNS eg.
> > pm.domain.com IN A 1.2.3.4
> > IN
> > A
> > 5.6.7.8
>
> Not exactly this.
> If you use Apache you should set
> ServerName pm.domain.com
> on every instance.
>
Ah, the lightbulb has been switched on :) Thank you very much for your detailed responsse and help.
--
Thanks, Phil

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Help noob with redirection

--[ UxBoD ]-- June 09, 2010 07:54AM

Re: Help noob with redirection

Igor Sysoev June 09, 2010 08:06AM

Re: Help noob with redirection

--[ UxBoD ]-- June 09, 2010 08:10AM

Re: Help noob with redirection

Igor Sysoev June 09, 2010 08:16AM

Re: Help noob with redirection

--[ UxBoD ]-- June 09, 2010 08:22AM

Re: Help noob with redirection

Igor Sysoev June 09, 2010 08:30AM

Re: Help noob with redirection

--[ UxBoD ]-- June 09, 2010 08:36AM

Re: Help noob with redirection

Igor Sysoev June 09, 2010 08:36AM

Re: Help noob with redirection

--[ UxBoD ]-- June 09, 2010 08:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 117
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