Apache Tomcat and IIS on same server?

Posted on 2010-11-18
Medium Priority
Last Modified: 2012-05-10

I have a hosted server running Windows Sever 2003 and Apache Tomcat.  It is hardly used so I would like to deploy some web services that run under IIS.

I guess it must be possible to have both web servers running on the same machine if they are configured correctly?  Should I install an extra network card and have a seperate IP for each web server?

How do I configure Apache Tomcat to listen on one IP and IIS on the other?

Question by:soozh
  • 2

Expert Comment

ID: 34166149
Easiest thing to do is simply run one of them on a different port.  IE put Tomcat on port 85 instead of port 80.

Author Comment

ID: 34166221
yes i could do that but i thought that maybe i would have some firewall problems (at my customers end) if i dont stick to port 80 for both servers.

Assisted Solution

drhamel69 earned 400 total points
ID: 34166282
You could set one up to use HTTPS (SSL) port.  That is port 443.  That port isn't blocked by any ISP that I am aware of.  You could run on port 443 and just not install an SSL cert.
LVL 30

Accepted Solution

Brad Howe earned 1600 total points
ID: 34169816

Yes, they can co-exist if you have multiple IP addresses. In this configuration you can use multiple web servers on the same port.

In tomcat6, you  whould modify the server.xml file <Connector> element and add additional attribute address="address".

<Connector port="80" address=""  />

To bind  IIS 6 to specific IP address (for example do the follwoing:

1. Extract the httpcfg.exe utility from the support tools area on the Win2003 CD.
2. Stop all IIS services
3. Execute: "httpcfg set iplisten -i"
4. Test bind. Execute "httpcfg query iplisten" and make sure the ip(s) are the ones you bind from above only.
5. Restart IIS Services: net start w3svc

In IIS, Make sure to also use Host Headers to reference your sites.


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Did you know PowerShell can save you time with SaaS platforms? Simply leverage RESTfulAPIs to build your own PowerShell modules. These will kill repetitive tickets and tabs, using the command Invoke-RestMethod. Tune into this webinar to learn how…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question