ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

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.

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

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


Comments

  • Can more domains be natched to the same siteaccess?

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