Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Apache handles this with the ServerName and UseCanonicalName commands, and Sun/iPlanet servers have an extensible configuration file, but IIS is broken and does not support this capability. IIS will only report scheme, host, and port values based on what the client supplies in its request. This is impossible to trust and cannot be used to look up settings.

Code Block
xml
xml

<ISAPI normalizeRequest="true">
    <Site id="1" name="www.example.org">
        <Alias>web.example.org</Alias>
    </Site>
    <Site id="1534573457" scheme="https" name="virtual.example.org" port="443">
</ISAPI>

The first element defines a default IIS web site with an Instance ID of "1" that runs on the standard ports. It also authorizes clients to access the site with an alias, and allows the alias to be used when redirects are generated. Using an alias requires that you duplicate any request map settings for each host you want to allow.

Note that content rules specified for the primary hostname will NOT apply when requests with the alias are made. You need separate rules for each alias you want to permit.

...