I am struggling with this issue and cannot get it work. I have added the following to modules/web/web/WEB-INF/web.xml file:
<security-constraint> <web-resource-collection> <web-resource-name>Everything in the webapp</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
The redirection is happening but it goes to port 8443 and I’m getting a timeout on https://mydomain.com:8443
Then I have edited server.xml and this connector to redirect to 443:
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443"/>
But now I’m getting this error: “mydomain.com redirected you too many times” in the (Chrome) browser.
I feel that I’m missing something here. I hope someone can help me out.