Tomcat和IIS共用服务器80端口

17 篇文章 0 订阅

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值