A solution using Apache and IIS at the same time

xiaoxiao2021-03-06  90

In this case, set Apache to use 80 ports, IIS uses other ports, such as 81, and then use Apache as an agent of IIS.

In httpd.conf, cancel 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

Then create a virtual host, turn all access to the domain name to the 81 port.

ServerName Iloves.vicp.net

Proxypass / http: // localhost: 81 /

ProxyPassReverse / http: // localhost: 81 /

This way, you can only need one port to use the features of Apache and IIS.

转载请注明原文地址:https://www.9cbs.com/read-104532.html

New Post(0)