Compartilhar via


httpProtocol Element [IIS Settings Schema]

Note

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

Configures custom and redirect response headers to be sent from the server to the client.

Syntax

Attributes and Elements

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

Attributes

Attribute

Description

allowKeepAlive

Optional Boolean attribute.

Specifies whether keep-alive processing is permitted (true) or not (false).

The default value is true.

Child Elements

Element

Description

customHeaders

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

redirectHeaders

Configures response headers that are returned in responses only when the Web server redirects requests.

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.

Remarks

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

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

See Also

Reference

customHeaders Element for httpProtocol [IIS Settings Schema]

redirectHeaders Element [IIS Settings Schema]