Web server configuration (detailed tutorial)

Source: Internet
Author: User

Web Services Overview       

A Web server generally refers to a Web server, which is a program that resides on a type of computer on Inetrnet, and can provide documentation to Web clients such as browsers. You can put the Web site files, let the world browse; You can place data files for download worldwide. Currently the most mainstream three Web servers are Apache, Nginx, IIS.

IIS Overview

is an Internet base service provided by Microsoft Corporation that is based on running Microsoft Windows. These include Web servers, FTP servers, NNTP servers, and SMTP servers, which are used for Web browsing, file transfer, news services, and mail delivery, making it easy to publish information on the network, including the Internet and local area networks.

Installing IIS

1. Open Server Manager in R2 to add roles

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/99/A1/wKioL1lKVPPzwYWGAACDdsjp0dk392.png-wh_500x0-wm_ 3-wmp_4-s_2385260059.png "title=" qq picture 20170621181911.png "style=" Float:none; "alt=" Wkiol1lkvppzwywgaacddsjp0dk392.png-wh_50 "/>

2. Add the required roles for Web server (IIS)

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/99/A1/wKiom1lKVPOSYWpMAACGyFsaPFE270.png-wh_500x0-wm_ 3-wmp_4-s_392820041.png "title=" qq picture 20170621182013.png "style=" Float:none; "alt=" Wkiom1lkvposywpmaacgyfsapfe270.png-wh_50 "/>

3. Select the role service by default

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/99/A1/wKioL1lKVPOCJOipAACeXlVqU7A631.png-wh_500x0-wm_ 3-wmp_4-s_1324341300.png "title=" qq picture 20170621182126.png "style=" Float:none; "alt=" Wkiol1lkvpocjoipaacexlvqu7a631.png-wh_50 "/>

4. Determine the installation

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/99/A1/wKiom1lKVPSi9n0KAACWq13gDQU893.png-wh_500x0-wm_ 3-wmp_4-s_1715027549.png "title=" qq picture 20170621182214.png "style=" Float:none; "alt=" Wkiom1lkvpsi9n0kaacwq13gdqu893.png-wh_50 "/>

Configure the Web site

Open the Internet Information Services Manager in the Administrative tools, and expand the left-hand window where you can configure it.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/99/A1/wKioL1lKVPagodnfAAEiYNOa2Oc782.png-wh_500x0-wm_ 3-wmp_4-s_3440968476.png "title=" qq picture 20170621183123.png "style=" Float:none; "alt=" Wkiol1lkvpagodnfaaeiynoa2oc782.png-wh_50 "/>

1. Configure the IP address and TCP port of the site

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/99/A1/wKioL1lKVPbToGzqAAEkSIFTWR4504.png-wh_500x0-wm_ 3-wmp_4-s_2506465644.png "title=" qq picture 20170621183903.png "style=" Float:none; "alt=" Wkiol1lkvpbtogzqaaeksiftwr4504.png-wh_50 "/>


650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/99/A1/wKiom1lKVPfy_TnjAAAZH_slsMs019.png-wh_500x0-wm_ 3-wmp_4-s_4238912768.png "title=" qq picture 20170621184030.png "style=" Float:none; "alt=" Wkiom1lkvpfy_tnjaaazh_ Slsms019.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/99/A1/wKioL1lKVPehbh6SAAAazG3iE7Q243.png-wh_500x0-wm_ 3-wmp_4-s_981648954.png "title=" qq picture 20170621184131.png "style=" Float:none; "alt=" Wkiol1lkvpehbh6saaaazg3ie7q243.png-wh_50 "/>

2. Configure the physical path and connection limits for the site

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/99/A1/wKiom1lKVPizf4F_AAEeuCGD5fY135.png-wh_500x0-wm_ 3-wmp_4-s_2497013571.png "title=" qq picture 20170621184314.png "style=" Float:none; "alt=" wkiom1lkvpizf4f_ Aaeeucgd5fy135.png-wh_50 "/>


650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/99/A1/wKioL1lKVPjh0J_IAAAvN21yPzs663.png-wh_500x0-wm_ 3-wmp_4-s_1260789170.png "title=" qq picture 20170621184352.png "style=" Float:none; "alt=" wkiol1lkvpjh0j_ Iaaavn21ypzs663.png-wh_50 "/>

3. Set the default document for the site, authentication

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/99/A1/wKioL1lKVPnAvXEoAAEnxkWvmEM711.png-wh_500x0-wm_ 3-wmp_4-s_2980445966.png "title=" qq picture 20170621184618.png "style=" Float:none; "alt=" Wkiol1lkvpnavxeoaaenxkwvmem711.png-wh_50 "/>

Advantages of configuring virtual directories

* Spread data across different disks or computers to facilitate separate development and maintenance

* When data is moved to a different physical location, the logical structure of the Web site is not affected

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/99/A1/wKiom1lKVPrTNW40AAEsO9vvb8E962.png-wh_500x0-wm_ 3-wmp_4-s_3003629326.png "title=" qq picture 20170621185345.png "style=" Float:none; "alt=" Wkiom1lkvprtnw40aaeso9vvb8e962.png-wh_50 "/>


650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/99/A1/wKiom1lKVPqR_a2SAAAf_8KHLGI166.png-wh_500x0-wm_ 3-wmp_4-s_3574906148.png "title=" qq picture 20170621185446.png "style=" Float:none; "alt=" wkiom1lkvpqr_a2saaaf_ 8khlgi166.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/99/A1/wKioL1lKVPuziWc8AAENziCYD9g943.png-wh_500x0-wm_ 3-wmp_4-s_4161343589.png "title=" qq picture 20170621185518.png "style=" Float:none; "alt=" Wkiol1lkvpuziwc8aaenzicyd9g943.png-wh_50 "/>

The role of the virtual host

in order to improve the utilization of resources, you can run multiple Web sites on a single server, which are called virtual hosts and are typically implemented in the following three ways:

* Use a different IP address

* Use the same IP address, different port number

* Use the same IP address, the same port number, different host name

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/99/A1/wKioL1lKVPuS0NHqAAEtQp4taKw474.png-wh_500x0-wm_ 3-wmp_4-s_2067726814.png "title=" qq picture 20170621190807.png "style=" Float:none; "alt=" Wkiol1lkvpus0nhqaaetqp4takw474.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/99/A1/wKiom1lKVPzQvWiBAAA0Uultnzs762.png-wh_500x0-wm_ 3-wmp_4-s_2604363012.png "title=" qq picture 20170621191119.png "style=" Float:none; "alt=" Wkiom1lkvpzqvwibaaa0uultnzs762.png-wh_50 "/>

Because it is a waste of resources to request IP addresses for each site, it is impractical to use different port numbers for user access, so using different host headers is the most common method.























This article is from the "Network" blog, be sure to keep this source http://yangshufan.blog.51cto.com/13004230/1940686

Web server configuration (detailed tutorial)

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.