Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat configuration to accept HTTPS on a different Port

Tags:

java

tomcat7

My Tomcat 7 is running on Port 4545. How do I configure it to accept HTTPS connection on 4546 or something else. I can't have it on default 443 as there is already IIS running.

UPDATE

Steps I tried out:

  1. My 8443 port is already used by Plesk.
  2. I replaced 8443 with 4546 in the XML file and uncommented the line as in tutorial.
  3. Then I added a firewall exception for the PORT but still it doesn't load.
  4. It shows timeout message after sometime.
like image 938
Akhil K Nambiar Avatar asked Dec 17 '25 17:12

Akhil K Nambiar


1 Answers

In tomcatDir/conf/server.xml look for this line:

    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS" />

It is self-explanatory, just take into account that you also need to have certificates in order for SSL to work properly.

Also, have a look at its documentation that explains how to specify your certificates: http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

like image 200
morgano Avatar answered Dec 19 '25 07:12

morgano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!