Two IP implementations for IIS and Apache public 80 port setting method

Source: Internet
Author: User
Tags net domain

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, at the command prompt, type the following command line: 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. Phileep 氍 夦 鷏 Seine. {m? C Descending voluntarily n{n PHLC hurt Zhu Jiang {o-Mirror vapor rhenium ttukseom {p?7?? W Cambodia 颪 Festivities # boring q? J\r Bera 畖 s? cranio-9 Yue S 蠯 u carbonyl I7} OK, 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 it to the windows/system32/directory, download http://www.jb51.net/softs/9541.html usage in my resources to see the help command line: Bind to an IP: Httpcfg set Iplisten-i 192.168.1.1 is a command that uses IIS to listen only to the specified IP and port view bindings: Httpcfg query Iplisten Remove bindings: httpcfg Delete iplisten-i 192 The. 168.1.1 IIS section is set up here, then set the Apache listening IP and port listen 192.168.1.2:80 server 192.168.1.2:80 virtual host to set the appropriate IP and port OK, then stop IIS. Restart Apache and restart the server to start IIS settings port IP address is all unassigned another article on the Web: Both Apache and IIS are installed in Windows 2003 Server at the same time, and both Apache and IIS are in conflict, because IIS consumes 80 of all IP ports by default, and when IIS is started, the Apache An error prompt will appear with the following message: "The requested operation has failed!", that is, "the requested operation has failed"; If you start Apache and then start IIS, you are prompted to "another program is using this file and the process cannot access it." Microsoft's solution is: if Apache and IIS to coexist, and all need to use 80 port, you need a network card to bind more than one IP, as follows, for users reference. * If Apache and IIS want to coexist, and all need to use 80 port, but only one IP, what to make Apache proxy, that is, the Apache agent, and this method is not the same, please distinguish. The following is an example of setting two environments with two IPs, Known conditions: 218.87.96.160 binding www.jb51.net Domain name, is a PHP site, requires Apache environment, 218.87.96.161 bound www.yuanma51.com domain name, is an ASP site, requires the IIS environment. One, Apache changed to listen to an IP port. In the Httpd.cfg file. There are #Listen 12.34.56.78:80 written as: Listen 218.87.96.160:80 II, download the Microsoft Support Tools Httpcfg.exe program:     HT tp://www.jb51.net/softs/9541.html and copy to the C:\Windows\System32 directory. Third, IIS changed to listen to the specified IP (specified by the Httpcfg.exe program) Httpcfg.exe is used to specify IIS only listen to the specified IP and port add binding: Httpcfg set Iplisten-i 218.87.96.161 View bindings: Httpcfg query Iplisten Delete bindings: httpcfg Delete iplisten-i 218.87.96.161 run in this example: Httpcfg set Iplisten-i 218.87.96.161 Make IIS occupy only the 218.87.96.161 IP address (if you want to listen to multiple IPs, you can specify a few separately.) )Iv. Restart the server to see if the two web environments are healthy. With Netstat-an | Find ": 80" command to see all the 80 ports, and finally test the two IP site is normal.

Two IP settings for IIS and Apache public 80 ports

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.