wood burning stoves 2.0*
The moose likes Tomcat and the fly likes redirectPort not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "redirectPort not working " Watch "redirectPort not working " New topic

redirectPort not working

Jaime Acosta

Joined: Nov 24, 2010
Posts: 4

I have tomcat 5.5 set up for my web application with ssl working properly. I would like to redirect all http traffic to https. From my understanding, i should simply have to set the ssl connector to 443 and add 'redirectPort="443"' to the connectors for 80 and 8080 in the server.xml like this:

I also added the following to the end of my web.xml (just before </web-app>), based on information provided in instructions I found online:

As i mentioned above, the ssl is working properly, and I can browse to https://site.com, as well as http://site.com and http://site.com:8080. Unfortunately, the latter two do not redirect to the https://site.com addresss like I intend it to. Is there something I'm missing?

I agree. Here's the link: http://aspose.com/file-tools
subject: redirectPort not working
Similar Threads
Setting Request Timeout in Tomcat
Hiding port number in URL
Tomcat not running
Transport-guarantee in web.xml
Cannot connect to https://localhost:8443