Web server configuration and management (1) IIS installation and basic settings

Source: Internet
Author: User

Web services, also known as WWW services, are the most widely used services on the Internet.

The Web Service adopts the "Browser/Server" mode. The client uses a browser to access the Web page stored on the server, and the client and the server use the HTTP protocol to transmit data. Clients use a wide range of browser types. Currently, Internet Explorer is the most commonly used IE browser in Windows), FireFox and Maxthon) and 360 browsers. The software used on the server is IIS on Windows and Apache on Linux. IISInternet Information Services), Internet Information Service, is a service component provided by the Windows Server system, can provide unified www, ftp, smtp Services, Windows Server 2008 R2 IIS version is 7.5, compared with earlier versions of IIS, IIS has greatly improved security. Next we will create a new virtual machine named web as a web server, assign its IP address 192.168.1.5, change the computer name to web, activate the system, add it to the domain, and then create a snapshot. First, you still need to install the "web Server IIS)" role in Server Manager.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0200293K8-0.jpg "/>

IIS 7.5 is divided into more than 40 different functional modules. The administrator can customize and install the corresponding functional modules as needed to reduce the attack surface of the Web site, security and performance are greatly improved. Therefore, in the "select role service" step, we use the default settings to install only the most basic functional modules.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0200294M3-1.jpg "/>

After the installation is complete, you can use Internet Information Service (IIS) manager in administration tools to manage the IIS website. You can see that a Site named "Default Web Site" has been created, open ie on Client client 1, and enter the IP address of the web server in the address bar to access this default website.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0200293U0-2.jpg "/>

We can also add a host record for the web server on the DNS server so that we can access the default website through the domain name www.coolpen.net.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0200293515-3.jpg "/>

In fact, you only need to make a slight modification to this default website and use it as a real website.

In IIS manager, click "Basic settings" in the "operations on the right of the default site" window ", the physical path of the default site is "% SystemDrive % \ inetpub \ wwwroot" % SystemDrive % indicates the disk partition of the 2008R2 system. This path corresponds to the Home Directory of the site.
The main directory is the root directory of the website. It stores the webpage, images, and other data of the website and is used to store the folder of the website. When the client accesses the website, the Web server automatically displays the default webpage in the folder to the client user.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0200291607-4.jpg "/>

Open this main directory and you will see a webpage file named iisstart.htm and an image. This is the page displayed on the default website we just saw.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0200295345-5.jpg "/>

If you have already created a website, you only need to upload all the files on the website to the main directory. There are many webpage files in a website. You must select one of them as the homepage of the website, that is, the webpage file that the user directly opens after entering the website domain name.
The homepage is called the "Default document" in IIS. in IIS manager, you can set the "Default document" in the main window of the default site.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0200293E8-6.jpg "/>

You can see that the system has five default documents: default.htm?default.asp;index.htm=index.html#iisstar.htm, whose priority is from high to low. You must use one of the preceding five names as a Web file on the homepage. If you use another name, you must add it to the document list.

Next, in the main directory of the website, edit a webpage file named default.htm Note D in uppercase using your notebook, and enter some content at will. Then visit the website on the client and you will find that the homepage we set is successfully opened.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0200292340-7.jpg "/>

 

This article is from the "one pot of turbidity wine" blog. For more information, please contact the author!

Related Article

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.