Method 1:
Iis5, coexistence under multiple IP addresses, IIS is 192.168.0.1, Apache is 192.168.0.2
C: \ Inetpub \ adminscripts
Cscript adsutil. vbs set w3svc/disablesocketpooling true
The command returns the following disablesocketpooling: (Boolean) True
Restart IIS
Inetpub \ adminscripts> cscript adsutil. vbs set w3svc/disablesocketpooling true
Because disablesocketpooling is defined as a valid attribute in the IIS 6.0 metabase architecture (mbschema. XML), you can still set this attribute using adsutil. vbs, but this setting does not work. Features in IIS 6.0 are newly added core-level DriversProgramPart of HTTP. sys. To configure HTTP. sys, you must use httpcfg.exe
Method 2:
IIS6: coexistence of multiple IP addresses. IIS is 192.168.0.1, apache is 192.168.0.2
to support/tools/support under Cd 2003. cab. Decompress the httpcfg.exe file, copy it to the Windows/system32/directory, and use it to view help.
command line
bind it to an IP address: httpcfg set iplisten-I 192.168.0.1
that is, the command uses IIS to only listen to the specified IP address and port
View binding: httpcfg query iplisten
Delete binding: httpcfg Delete iplisten-I 192.168.0.1
command line
net stop apache2
net stop IISADMIN/Y
Net start apache2
Net start w3svc
make sure that the IP address under IIS is set to global default, when listen 192.168.0.2: 80 is set in httpconf in Apache, the two services can run at the same time without conflict.
the IIS access address is http: // 192.168.0.1, And the Apache access address is http: // 192.168.0.2
reminder: set IIS to IP address 192.168.0.1 port 80, and Apache to listen 192.168.0.2: 80. The key is that after IIS is bound with the httpcfg command, it is impossible to restart the system only after restarting the service.
Method 3:
Set Apache to port 80, IIS to use other ports, such as 81, and then use Apache as the proxy of IIS.
In httpd. conf, uncomment the following four lines:
Loadmodule proxy_module modules/mod_proxy.so
Loadmodule proxy_connect_module modules/mod_proxy_connect.so
Loadmodule proxy_http_module modules/mod_proxy_http.so
Loadmodule proxy_ftp_module modules/mod_proxy_ftp.so
Create a VM to redirect all access requests from the domain name to port 81.
Servername iloves.vicp.net
Proxypass/http: // localhost: 81/
Proxypassreverse/http: // localhost: 81/
In this way, you can use both Apache and IIS functions by using only one port.
Method 4:
The commonly used method for sharing port 80 with a single IP address on the Internet is not recommended, but it is only used as an Apache proxy. The speed may affect the configuration of Apache to port 80, and IIS to use other ports, such as 81, then, use Apache as the proxy for IIS.
In httpd. conf, uncomment the following four lines:
Loadmodule proxy_module modules/mod_proxy.so
Loadmodule proxy_connect_module modules/mod_proxy_connect.so
Loadmodule proxy_http_module modules/mod_proxy_http.so
Loadmodule proxy_ftp_module modules/mod_proxy_ftp.so
Create a VM to redirect all access requests from the domain name to port 81.
Servername iloves.vicp.net
Proxypass/http: // localhost: 81/
Proxypassreverse/http: // localhost: 81/
In this way, you can use both Apache and IIS functions by using only one port.
Likewise, you can configure PhP4 and PhP5 in apache2 on IIS by installing PhP4 in IIS and setting PHP. copy INI to the \ Windows directory. You don't need to worry about this. In apache2, you only need to copy PhP5 PHP. put ini in the PhP5 installation directory.
Configure Apache to support PhP5:
Loadmodule php5_module "D:/phpserver/PhP5/php5apache2. dll"
Addtype application/X-httpd-PHP. php
Directoryindex index.html index. php
Phpinidir "D:/phpserver/PhP5 ″
The most important one is phpinidir, which is used to specify PHP. INI file location, that is, the installation directory of PhP5. Note that all directories should be changed to the format D:/phpserver/PhP5 instead of D: \ phpserver \ PhP5, the IIS access address is http: // 192.168.0.1, And the Apache access address is http: // 192.168.0.2.