次の方法で共有


applicationDefaults Element for sites Element [IIS Settings Schema]

Note

For more information about the applicationDefaults element, see the following topic on the Microsoft IIS.net Web site: Application Defaults <applicationDefaults>.

Specifies default settings for all applications in the sites on the server. If the same attribute or child element is configured in both the applicationDefaults section and in the application section for a specific application, the configuration in the application section is used for that application.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

applicationPool

Optional string attribute.

Specifies the default application pool to which all applications on the server are assigned.

enabledProtocols

Optional string attribute.

Specifies the default protocols through which to communicate with all applications on the server.

The default value is http. This value enables HTTP and HTTPS protocols an application.

path

Required string attribute.

Specifies the default virtual path of all applications on the server.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.applicationHost

Specifies the root element for configuring Web process settings.

sites

Specifies configuration settings for all sites on the server, and includes settings for applications and virtual directories in those sites.

Remarks

For more information about the applicationDefaults element, see the following topic on the Microsoft IIS.net Web site: Application Defaults <applicationDefaults>.

For more information, see https://www.iis.net/ConfigReference/system.applicationHost/sites/applicationDefaults

Element Information

Configuration locations

ApplicationHost.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0