Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to run IIS and Tomcat side by side?

Tags:

iis

tomcat

I am required to publish a JSP/Java servlets webapp. Unfortunately IIS does not support such deployments. The server I need to deploy it on already runs IIS and several IIS applications. I don't want to interfere with those applications but it is necessary for them and the new webapp to run on the same server. I tried setting up a proxy to redirect traffic to tomcat, but that broke the other applications.

I was wondering if it's possible to run IIS (accessible through good ol' port 80) and tomcat (running on port 8080); and be able to access both remotely. So far my efforts have been fruitless. Accessing IIS applications yielded no problems, but when I tried to connect to tomcat the browser would just time out. I unblocked port 8080 as well, so I'm sure that is not the issue.

Any help appreciated, thanks.

like image 725
melder Avatar asked Nov 24 '10 02:11

melder


People also ask

Can I run Tomcat and IIS on the same server?

IIS and Tomcat now coexist on the same server. Open ESET Remote Administrator Web Console (ERA Web Console) in your web browser and log in.

Can you run Apache and IIS on the same server?

Simultaneous ServersYou can install Apache and IIS on the same Windows PC at the same time. Although the applications will run, they both listen for web requests on TCP port 80 — there will be clashes so a little configuration is required. Microsoft provide a useful TCP port how-to page for all versions of IIS.

Can you run Apache and Tomcat on the same server?

Running Apache and Tomcat on the same computer is no problem. It's pretty common to run Tomcat on port 8080, run Apache on port 80/443, and use mod_proxy to allow Apache to serve apps hosted by Tomcat.

Does Tomcat need IIS?

Advanced Context Configuration Sometimes it is better to have IIS serve the static pages (html, gif, jpeg etc.) even if these files are part of a context served by Tomcat. For example, consider the html and gif files in the examples context, there is no need to serve them from the Tomcat process, IIS will suffice.


2 Answers

It's definitely possible, as long as they run on different ports. If you can access tomcat locally (http://localhost:8080) but not remotely, then it's a firewall issue. Also, if you really wanted you could have iis forward requests to tomcat.

like image 150
jvilalta Avatar answered Oct 28 '22 19:10

jvilalta


You can arrange IIS and Tomcat in 2 different IP addresses or you can setup reverse-proxy (nginx, lighttpd, mod_proxy, etc.) to port 80 and then set IIS to use port 8080 and for Tomcat port 9090.

like image 35
NARKOZ Avatar answered Oct 28 '22 20:10

NARKOZ