The IIS server can be used independently as a Web server or together with compatible tools, it can be used to establish Internet business, access and operate data from different data sources, and create Web applications. These applications use server scripts and component code to complete some client-server functions.
Apache and IIS servers are widely used Web platforms.
IIS servers are closely integrated with Windows NT servers. This ensures that network administrators and application developers have the same security, network, and management functions as Windows NT servers.
We installed IIS server and apache on the local machine for the debugging program, but we cannot use port 80 at the same time. Below, we will explain the solution for you:
The commonly used method for sharing port 80 with a single IP address on the Internet is not recommended. It is only used as an Apache proxy. The speed may affect the configuration of apache to port 80. the IIS server uses other ports, such as port 81, then, use apache as the proxy for the IIS server.
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 the functions of apache and IIS servers at the same time by using only one port.