I'm clearly misunderstanding how to do this, but I can't seem to find
appropriate documentation to get me to my goal.

My goal is to have any http request directed to the https equivilant.

On Tomcat 6, I was able to get it working, but something in my config is
different, or tomcat 8 has changed slightly enough that what I was doing on
6 doesn't work on 8.

I'm assuming it's the first, so digging through and comparing all my
config. While I do that, I'm hoping a message here may point me in the
right direction.

I've setup my 80 connector to redirect like so:

<Connector port="80"
               protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />


I've setup my 443 connector like so:
    <Connector port="443"
               maxThreads="1024" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="101" debug="0"
               SSLEnabled="true"
               scheme="https"
               secure="true"
               clientAuth="false"
               sslProtocols="TLSv1,TLSv1.1,TLSv1.2"
               keystoreFile="my.pfx"
               keystoreType="pkcs12"
               keystorePass="passw0rd"
    />


I've also included the security constraint in my web.xml like this:
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Context</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<!-- auth-constraint goes here if you requre authentication -->
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>


I googled "http to https tomcat 8" and reviewed the top 10, and I can't
find anything different from the above either.

Any help would be appreciated. I am admittedly a hacker at this, and don't
fully understand all the various config files with tomcat yet...

Thanks!
Mike.

-- 
Mike Johnson
Datatel Programmer/Analyst
Northern Ontario School of Medicine
955 Oliver Road
Thunder Bay, ON   P7B 5E1
Phone: (807) 766-7331
Email: mike.john...@nosm.ca

Reply via email to