This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "redirectPort not working " Watch "redirectPort not working " New topic
Author

redirectPort not working

Jaime Acosta
Greenhorn

Joined: Nov 24, 2010
Posts: 4
Hello,

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?

Thanks!
 
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