Nginx + Tomcat = Redirect Loop Nightmare
February 01, 2013 12:39AM
Folks,

I've tried literally hundreds of configuration attempts, admittedly without too much knowledge of proxy_pass(although I feel like an expert now). Here's the deal

1) Nginx 1.2.6 is configured with 2 servers (1 non-ssl & 1 ssl)
2) Tomcat is configured on port 8080 (with redirectPort=443) on a standard HTTP/1.1 connector.
3) The Java Application tells the tomcat container it's entered a restricted & secured url
4) It's my belief that tomcat then uses the redirectPort(443 in this case) to redirect the request to https
5) It's Nginx that sees this request via a server configured with ssl on port 443
6) A location / { proxy_pass http://localhost:8080} is used on the ssl server

For some reason I can't get the http to https transition(requested by the j2ee application) to work without a redirection loop.

Please help!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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