Share via


siteDefaults Element for sites [IIS 7 Settings Schema]

Note

For more information about the siteDefaults element, see the following topic on the Microsoft IIS.net Web site: Default Settings for All Sites <siteDefaults>.

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

Syntax

Attributes and Elements

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

Attributes

Attribute

Description

id

Optional uint attribute.

Specifies the random numeric identifier that is assigned by IIS when the site is created.

The default Web site is numbered 1. Other Web sites have random numbers composed of multiple digits.

name

Optional string attribute.

Specifies a friendly name that uniquely identifies a Web site, for example, "Contoso HR Forms".

serverAutoStart

Optional Boolean attribute.

Specifies whether the site should start automatically when the Management Service is started.

The default value is true.

Child Elements

Element

Description

bindings

Optional element.

Specifies the default bindings to access all sites on the server.

limits

Optional element.

Configures default settings to limit the amount of bandwidth, the number of connections, or the amount of time for connections to sites on the server.

logFile

Optional element.

Configures default settings for handling and storage of log files for all sites.

traceFailedRequestsLogging

Optional element.

Specifies default settings for logging failed-request traces for all sites.

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 siteDefaults element, see the following topic on the Microsoft IIS.net Web site: Default Settings for All Sites <siteDefaults>.

Element Information

Configuration locations

ApplicationHost.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

See Also

Reference

bindings Element for siteDefaults for sites [IIS Settings Schema]

limits Element for siteDefaults for sites [IIS Settings Schema]

logFile Element for siteDefaults for sites [IIS Settings Schema]

traceFailedRequestsLogging Element for siteDefaults for sites [IIS Settings Schema]