The IIS server cannot be shared with apache.

Source: Internet
Author: User

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:
 

 
 
  1. 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.

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.