Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Overview

The <Host> element is used to apply content settings to requests to specific virtual hosts and/or to act as a container for more specific rules based on path or query string.

...

IIS does not support this at all, and reports to applications only the value provided by the client. This is worked around by means of the <Site> element to provide a canonical site to host mapping independently of IIS.

...

Attributes

Content Specifiers

Names

Type

Req?

Description

name 

name 

string

Y

Required, specifies the hostname to match (see above for the issues with this)

scheme 

scheme 

"http",
"https"


Optional scheme to match against. Used to match only requests using a specific protocol. If omitted, either protocol will match.

port 

port 

integer


Optional port to match against. Used to match only requests using a specific port. If omitted, requests to the default port for the protocol scheme used (either 80 or 443) will match.

Content Settings

The element supports a large number of XML attributes corresponding to the content settings supported by the SP:

Include Page
ContentSettings
ContentSettings

Child Elements

Access Control

Include Page
AccessControl
AccessControl

Nested Content Specifiers

Include Page
NestedContentSpecifiers
NestedContentSpecifiers