Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.



Sets the mapping between hostname and siteaccess when using map host-matching.



HostMatchMapItems[]= hostname1; siteaccess1
HostMatchMapItems[]= hostname2; siteaccess2


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.

Frederik Holljen (31/03/2005 2:49 pm)

Frederik Holljen (31/03/2005 2:56 pm)


  • Can more domains be natched to the same siteaccess?

    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!

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