Welcome! Log In Create A New Profile

Advanced

Too Many Redirects

February 01, 2013 10:38AM
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...

Nginx 1.2.6 Config:

server {
listen www.mydomain.com:80;
listen www.mydomain.com:443 ssl;

ssl_certificate my.crt;
ssl_certificate_key my.key;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
location / {
proxy_pass http://localhost:8080;
}

location /images {
root /var/www;
}
}

----------------------------------------------------------------------------
Web.xml

<security-constraint>
<web-resource-collection>
<web-resource-name>Billing</web-resource-name>
<url-pattern>/billing/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>Shipping</web-resource-name>
<url-pattern>/shipping/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>Register</web-resource-name>
<url-pattern>/subscription/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>Contact</web-resource-name>
<url-pattern>/contactus.url</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

------------------------------------------------------------------------------------------

Tomcat Server.xml

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="443" <!-- This tell tomcat what port to use when security-constraint is provided in web.xml -->
proxyName="www.mydomain.com"
proxyPort="80"/>


Please help.
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: 238
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