IIS on Tomcat - same server, same port
In the interest of being difficult, cheap, and looking for adventure we are choosing to run IIS and Tomcat (or for that matter other web servers) on the same physical box. This is a piece of cake if you want to use multiple ports. We feel that is a clumsy solution and sought an alternative. We are using port 80 for both IIS and tomcat by assigning multiple IP addresses to the box and configuring each web server to only listen to one IP address.
1.Assign multiple IP addresses to NIC and create DNS entries
http://www.windowsnetworking.com/articles_tutorials/multiipa.html
2. Disable IIS Connection Pooling
cd c:/inetpub/adminscripts
cscript adsutil.vbs set w3svc/disablesocketpooling true
http://techrepublic.com.com/5100-10879_11-5841376.html
3.Set IIS to listen to specific IP address
IIS Administrator.
Right Click on Website
Click Properties
Website Tab
Specify desired IP address
4. Restart IIS
5. Configure Tomcat to listen to a specific IP address
Edit conf/server.xml
Add/change the address attribute of the connector to <connector … address=”123.45.67.89″ …>
If you have multiple sites running on IIS, even if they are stopped, you need to change their IP assignments to only your desired IP. This tripped us up for a while.
Enjoy!
Trackback:http://www.endofnow.com/?p=60