Support for Tomcat and IIS under multiple IP servers

Source: Internet
Author: User

Under the same server, dual IP (or more IP), implement tomcat with IIS public 80 port.

The operation is also very simple, first disable the socket pool for IIS, IIS binds an IP, then tomcat binds another IP, and finally restarts the server.   The following is a description of a simple operation. Disable the Socket pool for IIS (if this step is not good, it will not succeed), on the Microsoft official website has explained: HTTP://SUPPORT.MICROSOFT.COM/KB/238131/ZH-CN

Method/Step
  1.  

    First part: Disabling socket pooling    To disable socket pooling, follow these steps:  1. Open a command prompt and make sure that you are in The X:\Inetpub\Adminscripts folder (where X is the IIS installation drive). To do this, type the following   line at the command prompt:  x: cd\inetpub\adminscripts 2. After you open the AdminScripts folder, type the following line at the command prompt:  cscript adsutil.vbs set w3svc/disablesocketpooling true 3. The command feedback is as follows:  disablesocketpooling: (BOOLEAN) true 4. Stop the IIS Admin service, and then start it again.  5. Restart the WWW service.  6. Next, set the IP address that IIS will listen on. To the 2003 CD under the Support/tools/support.cab. Extract the Httpcfg.exe file, copy to the  windows/system32/directory, use your own Help   command line:  bound to a ip:httpcfg set iplisten-i 192.168.0.102  is the command to use IIS to listen only to the specified IP and port   view bindings: Httpcfg query iplisten  Delete bindings: httpcfg Delete iplisten-i 192.168.0.102 

  2. 2

    The second part: The setup of the IIS section of Tomcat is set up, next set Tomcat, of course, or you can use Apache,resin, etc., in the Tomcat configuration file server.xml found <connector port= "80" Protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/> <connector port= "Up" protocol= "HTTP/1.1" connectiontimeout= "20000" redirectport= "8443" address= "192.168.0.101"/> Added on the back of the IP address that requires Tomcat snooping, for example: address= "    192.168.0.101 "Apache,resin or other Web server software should have the corresponding settings, find it yourself." Okay, OK. Next reboot the server and start the IIS and Tomcat services, respectively, to see if the IIS and Tomcat services are working properly

Support for Tomcat and IIS under multiple IP servers

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.