Running Tomcat to listen on standard SSL port

Opinion
Sep 25, 20072 mins

I have a Web server running the Apache Web server and Apache Tomcat. The regular Apache Web server is used to forward SSL connections to Tomcat on Port 8443. Can I run Tomcat so that it will listen on the standard SSL port (443) along with the other ports it is listening on?

I have a Web server running the Apache Web server and Apache Tomcat. The regular Apache Web server is used to forward SSL connections to Tomcat on Port 8443. Can I run Tomcat so that it will listen on the standard SSL port (443) along with the other ports it is listening on?

Tomcat can be configured to listen on SSL Port 443. Then you could turn off the SSL listener in the Apache Web server and use only Tomcat to handle your SSL connections. You can modify the Tomcat configuration by editing the file named “server.xml” in the Tomcat conf directory. In the server.xml file you will see a section defining the Tomcat connector for Port 8443. Add a copy of the connector definition for Port 8443 to the file and simply change the number 8443 in your copy to 443. To disable the standard SSL port in the Apache Web server so that Tomcat can handle the connection, edit the httpd.conf file in the Apache conf directory and remove or comment out the lines that enable SSL in the Apache Web server. This will be an actual SSL Port 443 definition block or an include statement that calls in another ssl.conf file. After changing the Apache Web server configuration and restarting the Web server, restart Tomcat. You should then be able to connect via https directly to Tomcat.