My another blogs: Difference between HTTPS Port 443 and Port 8443 and Changing SSL port from 8443 to 443
We modify connector under /Your tomcat folder/conf/server.xml
modify non-SSL HTTP/1.1 Connector to 443 port
1 | <Connector port="80" maxHttpHeaderSize="8192" |
modify SSL HTTP/1.1 Connector from 8443 to 443 port
In the server.xml file you will see a section defining the Tomcat connector for Port 8443.
1 | <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" |
Add a copy of the connector definition for Port 8443 to the file and simply change the number 8443 in your copy to 443.
1 | <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" |
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. dis 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.
modify AJP 1.3 Connector to other port
1 | <Connector port="8009" |
Restart tomcat.
Reference Links:
- Changing SSL port from 8443 to 443
- A Simple Step-By-Step Guide To Apache Tomcat SSL Configuration
- Tomcat from 8443 to 443