HostMatchMapItems
Summary
Sets the mapping between hostname and siteaccess when using map host-matching.
Usage
HostMatchMapItems[]= hostname1; siteaccess1 HostMatchMapItems[]= hostname2; siteaccess2 ...
Description
Each row in the array defines one hostname to match and the siteaccess that will be used for that hostname.
See HostMatchType for examples and more information about host matching.
Contributors
- Frederik Holljen Updated
- Massimiliano Bariola Commenter
- Gaetano Commenter
Comments (2 historical)
Written by readers of the earlier documentation sites, kept as they were.
Can more domains be natched to the same siteaccess?
Massimiliano Bariola ·
It should be clarified whether a configuration like this:
i.e. accessing the same siteaccess from many domain names is allowed/feasible or not. This is very useful when waiting for DNS propagation but I had weird behavior from doing that, so I don't know if this operation is disallowed or if I made a mistake elsewhere.
Take care about using port 80 in your urls: itr will not be matched!
Gaetano ·
<i>HostMatchMapItems[]= hostname1; siteaccess1</i>
will not match http://hostname1:80
You will need to add a second rule for that:
<i>HostMatchMapItems[]= hostname1:80; siteaccess1</i>
This might happen not only when entering the url in the browser, but also when using webservices or other http clients that always put the port in the 'Host:' header in the http request.