共用方式為


add Element for headerLimits [IIS Settings Schema]

Note

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

Adds a limit for HTML headers for a specific domain to the headerLimits collection.

Syntax

Attributes and Elements

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

Attributes

Attribute

Description

header

Required string attribute.

Specifies the domain of the header.

sizeLimit

Required uint attribute.

Specifies the maximum size of the request, in bytes. Setting the value to 0, effectively denies all headers from the domain.

Child Elements

None.

Parent Elements

Element

Description

configuration

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

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

security

Specifies the section group that contains security-related sections.

requestFiltering

Specifies configuration settings for request filtering.

requestLimits

Specifies limits on requests processed by the Web server.

headerLimits

Specifies size limits for HTML headers.

Remarks

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

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0