File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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, as well as and Unfortunately, the latter two do not redirect to the addresss like I intend it to. Is there something I'm missing?

I agree. Here's the link:
subject: redirectPort not working