Solved

Apache Tomcat and IIS on same server?

Posted on 2010-11-18
4
1,278 Views
Last Modified: 2012-05-10
Hello,

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?

/richard
0
Comment
Question by:soozh
  • 2
4 Comments
 
LVL 2

Expert Comment

by:drhamel69
Comment Utility
Easiest thing to do is simply run one of them on a different port.  IE put Tomcat on port 85 instead of port 80.
0
 

Author Comment

by:soozh
Comment Utility
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.
0
 
LVL 2

Assisted Solution

by:drhamel69
drhamel69 earned 100 total points
Comment Utility
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.
0
 
LVL 30

Accepted Solution

by:
Brad Howe earned 400 total points
Comment Utility
Hi,

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".
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

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

To bind  IIS 6 to specific IP address (for example 192.168.0.1) do the follwoing:
http://msdn.microsoft.com/en-us/library/aa364478(VS.85).aspx

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 192.168.0.1"
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.

Cheers,
Hades666
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now