Search code examples
.nettomcatiishosting

How to use port 443 for both IIS and Tomcat on same server for two different applications


We are having an application server , we need to host .Net Web api with secure HTTPS link on port 443 using IIS , also a front application (using JAVA) in Tomcat with secured HTTPS link on same 443 port.

We deployed Java front end in tomcat with 443 port but now when tried to start a site in IIS on same port 443 it is not starting since port already in use.

So what steps can be taken so that we will have two different application hosted in IIS and Tomcat with using same 443 port.


Solution

  • You can configure a reverse proxy for IIS, use port 443 as the traffic forwarding port, and set the two different applications to other ports. Because IIS is used as a reverse proxy server, you can use port 443 to forward to by creating a rewrite rule. on two other different application ports.

    you can look at this: Proxy IIS Server to Tomcat Application