customHeaders Element for httpProtocol [IIS Settings Schema]

IIS 7.0

NoteNote:

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

Configures custom response headers that are returned in responses from the Web server.

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

Attributes

None.

Child Elements

Element

Description

add

Optional element.

Adds a custom response header to the customHeaders collection.

clear

Optional element.

Removes all references to custom response headers from the customHeaders collection.

remove

Optional element.

Removes a reference to a custom response header from the customHeaders collection.

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.

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

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

Show: