You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lee Jarvis <le...@brighthouse.com> on 2020/09/14 19:22:50 UTC
Unable to get http redirect to https on Apache Tomcat 8.5.57
Hi all,
I’m trying to implement SSL and have defined a connector on ports 8080 and 8443. I can connect to either port, but I want any incoming HTTP on 8080 to be redirected to the HTTPS port on 8443, but that’s not happening as I have things configured below. What
am I missing?
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="60000"
redirectPort="8443"
relaxedQueryChars='^{}[]|"' />
<Connector
protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="60000"
port="8443"
maxThreads="200"
scheme="https"
secure="true"
SSLEnabled="true"
keystoreFile="///C:/apache-tomcat-8.5.57/webapps/cmms/WEB-INF/classes/keystore.jks"
keystorePass="********"
clientAuth="false"
sslProtocol="TLSv1.2"
relaxedQueryChars='^{}[]|"' />
Thanks & regards,Lee Jarvis