Internet Information Services (IIS) 7.5 express and Configuration

Source: Internet
Author: User

Internet Information Services (IIS) 7.5 Express:

Http://www.microsoft.com/downloads/zh-cn/details.aspx? Familyid = ABC59783-89DE-4ADC-B770-0A720BB21DEB

 

IIS express supports XP and higher operating systems, and provides iis7.x consistent development functions on all systems.

1, install iisexpress_1_10_x86_zh-CN.msi

2. configuration file c: \ Program Files \ IIS express \ config \ Templates \ personalwebserver \ applicationhost. config

By default, nodes in the configuration file do not require much attention, because in most cases, only the <site> nodes under <sites> are concerned. websites and applications are saved here. Program Is what we really need to care about.

①. Each <site> is a website.

This is the same concept as the website in IIS. Serverautostart sets whether to automatically start with IIS Express. If this parameter is set to true, IIS Express is automatically loaded every time it is started (if no website is specified). Otherwise, it is loaded only when it is run in the mode of the specified website.

The syntax for loading a specific website using IIS Express is: iisexpress.exe/site: <site name>

②. <Bindings> under <site> sets the binding information for this site.

Each <binding> under a node is a port binding information. The typical binding configuration is as follows: <binding protocol = "HTTP" bindinginformation = "*: 8080: localhost"/>

Protocol specifies the binding protocol type (IIS Express has built-in support for HTTP and HTTPS protocols), while "*: 8080: localhost" specifies the binding details, it consists of three parts: "bound IP: Port: Host Name ". By default, it is bound to any local IP address, non-reserved port, and localhost. Pay attention to this localhost, which may cause confusion under specific circumstances. Please refer to the content later in this article.

③. <Application> This section sets the website application

Each website requires at least one "/" application mapped to the root directory ). In addition, you can add different parallel paths <Application>, which is similar to the application configured on the website in IIS.

For example, on the fishsite website, I need to add a separate application mapped to the fish directory under the root directory. Then I can configure it like this:
<Site name = "fishsite" id = "2">
<Application Path = "/" applicationpool = "clr2integratedapppool">
<Virtualdirectory Path = "/" physicalpath = "<root directory of the website>"/>
</Application>
<Application Path = "/fish" applicationpool = "clr2integratedapppool">
<Virtualdirectory Path = "/" physicalpath = "<root directory of this application>"/>
<Virtualdirectory Path = "/content/" physicalpath = "</fish/content/virtual directory corresponding to the directory>"/>
</Application>
<Bindings>
<Binding protocol = "HTTP" bindinginformation = "*: 5000: localhost"/>
</Bindings>
</Site>

In <site>, only the Path = "/" application is required (and cannot be missing). Other applications can be added as needed.

④ <Virtualdirectory> sets the directory ing information.

See Code . In each <Application> section, there must be at least one virtualdirectory Path = "/", which represents the location of the Directory ing. In addition, you can manually add virtual directories with different mapped paths.

3. After modifying the configuration file, start IIS Express
Start c: \ Program Files \ IIS express \ iisexpress.exe

4. Enter http: // localhost: 8080/in the browser to access the website.

 

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.