Force the use of SSL?

Help
Matt
2007-04-05
2013-04-16
  • Matt
    Matt
    2007-04-05

    I've gotten SSL working.  I also have setup IPTABLES redirects per the instructions for WebDisk.  So users can browse to either of these and get to WebDisk...

    http://ip.of.webdisk.server/ba/base
    https://ip.of.webdisk.server/ba/base

    Now I'm trying to figure out how to force a redirect of HTTP to HTTPS in Tomcat.  I've searched around the web and can't seem to find any definitive answer that works.  I've tried adding this directive to the Tomcat HTTP Connector... redirectPort="8443" ...but it doesn't do anything.

    Anyone know how to force Tomcat to redirect http to https?

    Thanks,
    Matt

     
    • Hello,

      I think this needs to be done in the code. I'll check that for the next release.

      bye
      Thomas

       
    • Thomas Bley
      Thomas Bley
      2007-07-12

      Hello,

      I added a new option to the new release (0.44):
      - SSL can now be forced by a parameter in web.xml

      bye
      Thomas