Introduction to IIS 7 Site administration for WIN2008 applications

Source: Internet
Author: User
Tags configuration settings file system iis port number

In IIS 7.0, we can configure the site to use protocols other than HTTP and HTTPS, and you can add multiple bindings to the site. For example, if an application in your site needs to use a protocol supported by Windows communication Foundation (for example, net.tcp or NET.MSMQ), you can also add the binding for the protocol, instead of adding only the use of HTTP or HTT PS Web site bindings. In this way, the application in the site will be able to use the same site configuration settings (such as the physical path of the site's content), regardless of what protocol you configure in the site bindings.

(i) Add Web site

During IIS 7.0 Setup, the default Web site configuration is created in the \inetpub\wwwroot directory on the WEB server. You can use this default directory to publish Web content, or you can create a directory in the selected file system location. When you add a Web site in IIS 7.0, a site entry is created in the ApplicationHost.config file. This entry specifies the network bindings for the site and will station

1. Open IIS Manager.

2. In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.

3. In the Add Web Site dialog box, in the Site name box, type a friendly name for the site.

4. If you want to select a different application pool than the application pool that is listed in the Application pool box, click Select. In the Select Application Pool dialog box, select an application pool from the application pool list, and then click OK.

5. In the Physical Path box, type the physical path of the folder for the Web site, or click the browse button (...) and navigate through the file system to locate the folder.

6. If the physical path you entered in step 5th is the path to a remote share, click Connect as to specify the credentials that have access to the path. If you do not use specific credentials, select the application users (pass-through authentication) option in the Connect As dialog box.

7. Select a protocol for the Web site from the type list.

8. The default value in the IP address box is "All Unassigned." If you must specify a static IP address for the Web site, type this IP address in the IP address box.

9. In the Port text box, type the port number.

10. We can also type the host header name for the Web site in the "Host Header" box.

11. If you do not need to make any changes to the site, and you want the site to be available immediately, select the Start Web site now check box.

12. Click OK.

(ii) Start or stop the Web site

At some point, you may stop a Web site for health or performance reasons or for adding or deleting content. If the site is stopped, you can restart it.

1. Open IIS Manager, and then navigate to the level you want to manage.

2. In the function view, in the actions pane, perform one of the following procedures:

-Under Manage Web site, click Start to start the Web site.

-click Stop under Manage Web sites to stop the Web site.

(iii) Add bindings to the site

The specific steps are as follows:

1. Open IIS Manager.

2. In the Connections pane, expand the Sites node in the tree, and then click the site for which you want to add a binding to select it.

3. In the actions pane, click Bindings.

4. In the Site Bindings dialog box, click Add.

5. In the Add Web Site Bindings dialog box, add the binding information that you want, and then click OK.

(iv) configuration of the main head of the site

A host header (also known as a domain name or host name) allows multiple sites to be assigned to an IP address on a WEB server. To host multiple Web sites on a Web server, you can assign a unique IP address to each site, specify a non-standard TCP port number for a Web site, or use a host header. In these three methods, it is more common to use host headers.

The specific steps are as follows:

1. Open IIS Manager.

2. In the Connections pane, expand the Sites node in the tree, and then select the site for which you want to configure the host header.

3. In the actions pane, click Bindings.

4. In the Site Bindings dialog box, select the binding for which you want to add a host header, and then click Edit or add to add a new binding with the host header.

5. In the Host Name box, type the host header for the site, such as www.contoso.com.

6. Click OK.

7. To add additional host headers, create a new binding with the same IP address and port, and then create a new host header. Repeat this procedure for each host header that you want to use this IP address and port.

(v) Change the application pool for a site

When you create a site, you must select the application pool in which the site root application can run. If you need to change the application pool later, you can change the properties of the site. For example, you may find that a site consumes a large amount of resources and has a detrimental effect on other sites in the application pool. You can then move the site to its own application pool to avoid impacting other sites.

The specific steps are as follows:

1. Open IIS Manager.

2. In the Connections pane, expand the Sites node in the tree, and then click the site whose application pool you want to change to select it.

3. In the Actions pane, click Basic Settings to open the Edit Site dialog box.

4. Click Select to open the Select Application Pool dialog box, and then select an application pool from the application pool list, and then click OK.

5. In the Edit Site dialog box, click OK.

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.