Two IP implementation IIS and Apache public 80 Port Setup method _win Server

Source: Internet
Author: User
Tags net domain
1. Open the 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 command 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 order feedback is as follows:
DisableSocketPooling:(BOOLEAN) True
4. Stop the IIS Admin service and then start it again.
5. Restart the WWW service. 珖 氍 夦 鷏 罾. {m? C 鹠 voluntarily n{n 簑 damage Jiang {o Mirror vapor rhenium tents {p?7?? W-Cambodia 颪 path # boring q? J\r 蘗 畖 s Night 髗 9 哕 s 蠯 u carbonylation I7}
OK, next set the IP address that IIS will listen to. To the Support/tools/support.cab under the 2003 CD. Extract the Httpcfg.exe file, copy to
In the windows/system32/directory,
Download http://www.jb51.net/softs/9541.html for my resources
Use yourself to see Help
Command line:
Bind to a ip:httpcfg set iplisten-i 192.168.1.1 A command that uses IIS to listen only for the specified IP and port
Viewing bindings: Httpcfg query Iplisten
Delete binding: httpcfg Delete iplisten-i 192.168.1.1
The IIS section is set up here, and then Apache listens for IP and port
Listen 192.168.1.2:80
Server 192.168.1.2:80
The virtual host sets the appropriate IP and port
Okay, next stop IIS, restart Apache.
Restart the server to start IIS set the port IP address for IIS to be all unassigned
another article on the Web:
Both Apache and IIS are installed in Windows 2003 Server at the same time, both Apache and IIS are in conflict because IIS consumes 80 ports of all IP by default, and when IIS is started and then Apache is started, An Error prompt box appears that says "The requested operation has failed!", that is, "the requested operation has failed"; If you start Apache and then start IIS, you are prompted that "another program is using this file and the process is inaccessible". Microsoft's solution is: if Apache and IIS to coexist, and all need to use 80 ports, the need to tie a network card more than one IP, the specific practices are as follows, for users to refer to.
* If Apache and IIS to coexist, and all need to use 80 ports, but only one IP, to make what Apache proxy, that is, Apache proxy, and this method is not the same, please distinguish.
The following is an example of two environments where two IP is set separately, Known conditions: 218.87.96.160 bound www.jb51.net domain name, is a PHP site, need 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's #Listen 12.34.56.78:80.
Written as: Listen 218.87.96.160:80
Second, download the Microsoft Support Tools tool in the Httpcfg.exe program
Download Address:
Http://www.jb51.net/softs/9541.html
and copy it to the C:\Windows\System32 directory.
Third, IIS changed to listen to the specified IP (with the Httpcfg.exe program to specify)
Httpcfg.exe is used to specify that IIS only listens on the specified IP and port
Add binding: Httpcfg set Iplisten-i 218.87.96.161
Viewing bindings: Httpcfg query Iplisten
Delete binding: httpcfg Delete iplisten-i 218.87.96.161
Run in this example: Httpcfg set Iplisten-i 218.87.96.161 allows IIS to occupy only 218.87.96.161 IP addresses (if you want to listen for multiple IPs, specify a few respectively.) )
Four, restart the server
See if two web environments are normal. With Netstat-an | Find ": 80" command to see all of the 80 ports, the last Test two IP site is normal.

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.