Welcome! Log In Create A New Profile

Advanced

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

March 07, 2012 07:54AM
On Wed, 2012-03-07 at 07:20 -0500, mevans336 wrote:

> Even though the HTTPS redirect was disabled, the application itself
> still sends a redirect to /home. For example, if you type in
> http://my.domain.com you were successfully redirected to
> https://my.domain.com/home. That initial redirect was happening and that
> is where the error 310 would occur, at the https://my.domain.com/home
> level.

Okay, I must have missed the redirect to /home.

> I see that Francis is in agreement with you that the proxy_pass
> directive is being negated by the permanent rewrite. Just for my
> edification, would you (or anyone else who would like to take a stab at
> it) mind confirming that if I remove the proxy_pass directive, I will
> still be able to achieve load balancing between the two upstream
> servers? If you could explain how load balancing works without that
> directive so I have a clearer understanding, I'd be even happier! I have
> searched the wiki and my Nginx book, but I'm either missing it, or this
> specific scenario is not addressed.

Because you are also doing proxy_pass in the https section. So the flow
goes like this:

1. request visits http section and is redirected to https section
2. https section sends request via proxy_pass to load-balanced JBoss
backends

So you should remove the proxy_pass from the first (HTTP) server block,
but leave the proxy_pass that exists in the second (HTTPS) server block.

Regards,
Cliff


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

Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

mevans336 March 06, 2012 04:08PM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

Cliff Wells March 06, 2012 04:48PM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

mevans336 March 06, 2012 05:07PM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

Cliff Wells March 06, 2012 08:00PM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

Francis Daly March 06, 2012 05:08PM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

Cliff Wells March 06, 2012 08:14PM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

mevans336 March 07, 2012 07:20AM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

Cliff Wells March 07, 2012 07:54AM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

mevans336 March 08, 2012 09:15AM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

mevans336 March 07, 2012 07:23AM

Re: Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS)

Francis Daly March 08, 2012 01:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 221
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready