Welcome! Log In Create A New Profile

Advanced

Re: Too Many Redirects

Francis Daly
February 01, 2013 03:50PM
On Fri, Feb 01, 2013 at 10:38:37AM -0500, billmanhillman wrote:
> Proxy Pass is causing to many redirects when web.xml is upshifting to SSL
> via security-constraint. It seems like tomcat doesn't like receiving
> proxy_pass with http://localhost:8080 and tries to convert to SSL again.
> What gives? Configs follow...

Your nginx accepts requests over http and https, and sends them both
identically to your tomcat over http.

If your tomcat cares about whether the request from the client came over
http or over https, then you'll need (a) nginx to indicate the difference;
and (b) tomcat to accept the difference.

nginx could be configured to send a http header indicating whether the
incoming request to it was over https or not.

Or nginx could be configured to send from-http requests to one ip:port,
and from-https requests to another ip:port.

When you can configure your tomcat to respond to one of those differences,
you can configure nginx appropriately.

f
--
Francis Daly francis@daoine.org

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

Too Many Redirects

billmanhillman February 01, 2013 10:38AM

Re: Too Many Redirects

Francis Daly February 01, 2013 03:50PM

Re: Too Many Redirects

billmanhillman February 01, 2013 07:27PM

Re: Too Many Redirects

Francis Daly February 02, 2013 04:30AM

Re: Too Many Redirects

billmanhillman February 02, 2013 10:34AM

Re: Too Many Redirects

Jonathan Matthews February 02, 2013 02:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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