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!