Skip to the content
Documentation

HostMatchMapItems

No ratings yet

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

Comments (2 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Can more domains be natched to the same siteaccess?

    Massimiliano Bariola ·

    It should be clarified whether a configuration like this:

    HostMatchMapItems[]
    HostMatchMapItems[]=front.example.com;corporate_user
    HostMatchMapItems[]=www.example.com;corporate_user

    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.

  2. 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.

Comments

Add a comment

Comments are read by a moderator before they appear.