On 14/09/2020 20:22, Lee Jarvis wrote: > 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
In the configuration above, there is nothing to configure a redirect from http to https. You'd normally do this with a transport guarantee in web.xml (other solutions are available). Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org