Windows-Chapter 2 install and configure Web Servers

Source: Internet
Author: User

 

In this chapter, we will install Web Services on Windows Server 2008 operating system servers, and use IIS7 management tools to configure Web Services and publish websites for client access.

1. Install the IIS server role

Install IIS on a Server with a Windows Server 2008 operating system. The detailed steps are as follows:

1. Choose Start> Administrative Tools> Server Manager"

2. Click "role" -- add "role"

3. In the "Select Server role" dialog box, select "Web Service (IIS)" in the role column on the right )"

4. In the "add required functions for web Services (IIS)" prompt, click "add required features"

5. On the right side of the "select role service" dialog box, select the desired service. If you select the default service, the installed "web Service (IIS)" can publish a static website.

 

6. Because subsequent operations will be performed in environments based on various scripting languages, select the "Application Development" service in the role service.

7. web Service IIS installation is complete.

 

2. Configure IIS-based static Web Sites

This time, a static website will be released on the server. If the IP address of the server is set to 192.168.1.100, the configuration steps are as follows:

1. manually create a static page (create a new document, and enter "index.html" after a test page). Set the website name to web and the directory to C/web.

2. Click Start> Administrative Tools> Internet Information Service (IIS) manager"

3. In the "Internet Information Service (IIS) manager" dialog box, expand (computer name)-"website"

4. Right-click the Default website-"Default web site" and click Delete in the expanded menu.

5. Click "application pool" on "website" to delete "DefaultAppPool"

6. Right-click the website, add the website, and enter "web" in "website name ".

7. Enter "C: \ web" under the option "physical path" (you can select this path through browsing)

8. Under the "bind" option. Select "http" in "type", and select the IP address of the network adapter in "ip address,

9.when the website is set to complete, the website with the website name "Web" appears, and the website with the website name "index.html" appears"

 

10. Restart the website and open the browser and enter http: // 192.168.1.100. As shown in, the website is published successfully.

 

3. Publish an ASP-based web Site

 

To publish an ASP-based site, make sure that the ASP feature of IIS has been installed. If not, expand the list on the left in "Server Manager" and select "web Server (IIS) "and then find" add role service "in the options pane on the right, and then select and install" ASP "in the pop-up window. It is similar to publishing a static web site, you only need to set the corresponding access permissions in the highest folder of the website path: To facilitate the test, you can set full control of everyone. Detailed steps are not provided here.

4. Publish a website developed based on ASP.net

In the current application environment, many websites use ASP. NET programming framework development, ASP. NET is the latest programming framework of Microsoft, which is advanced to some extent. To publish a website developed based on ASP.net, it is necessary to ensure ASP. NET of IIS.. NET has been installed. If not, expand the left-side list in "Server Manager" and select "web Server (IIS) "and then find" add role service "in the options pane on the right, and then select and install" ASP. NET ",

To publish a website developed based on ASP.net, in addition to setting folder permissions like publishing an ASP-based website, you must also enable the parent path by clicking the corresponding website, double-click the asp icon in the middle bar to use the parent path,

Other steps are the same as above

 

Note: If you register a version of ASP. NET to IIS, enter c: \ windows \ microsoft.net \ framework \ v1.1.4822 \ ASPNET_regiis-I at start-run.

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.