Share via


site Element for sites [IIS Settings Schema]

Note

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

Specifies configuration settings for a 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

application

Optional element.

Specifies configuration settings for an application in the parent site.

applicationDefaults

Optional element.

Specifies default settings for all applications in the parent site.

bindings

Optional element.

Specifies bindings to access the site.

ftpServer

Optional element.

Specifies the site-level settings for FTP features on FTP sites.

limits

Optional element.

Configures settings to limit the amount of bandwidth, the number of connections, or the amount of time for connections to a site.

logFile

Optional element.

Configures settings for handling and storage of log files for the site.

traceFailedRequestsLogging

Optional element.

Specifies settings for logging failed-request traces for the site.

virtualDirectoryDefaults

Optional element.

Specifies the default settings for all virtual directories in the parent site.

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 in ApplicationHost.config that is the top-level section group in which this element is defined.

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 site element, see the following topic on the Microsoft IIS.net Web site: Site <site>.

Element Information

Configuration locations

ApplicationHost.config

Requirements

IIS 7

See Also

Reference

application Element for site for sites [IIS Settings Schema]

applicationDefaults Element for site for sites [IIS Settings Schema]

bindings Element for site for sites [IIS Settings Schema]

ftpServer Element for site for sites [IIS Settings Schema]

limits element for site for sites [IIS Settings Schema]

logFile Element for site for sites [IIS Settings Schema]

traceFailedRequestsLogging Element for site for sites [IIS Settings Schema]

virtualDirectoryDefaults Element for site for sites [IIS Settings Schema]