Tomcat and IIS shared server port 80

Source: Internet
Author: User

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 processing ing 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.