Too Many Redirects
Francis Daly
francis at daoine.org
Fri Feb 1 20:49:28 UTC 2013
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 at daoine.org
More information about the nginx
mailing list