...
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 | ||||
---|---|---|---|---|
| ||||
<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.
Note |
---|
Note that content rules specified for the primary hostname will NOT apply when requests with the alias are made. |
...
Using an alias requires that you duplicate any request map settings for each |
...
host you want to |
...
allow. |
The second example element is a virtual web site running behind an SSL accelerator that translates SSL requests to non-SSL requests. The scheme
and port
attributes override the physical settings with logical values seen by the client.
...