Akhil K Nambiar
Akhil K Nambiar

Reputation: 3975

Tomcat configuration to accept HTTPS on a different Port

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.

Upvotes: 3

Views: 1236

Answers (1)

morgano
morgano

Reputation: 17422

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

Upvotes: 4

Related Questions