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 which type of host matching to use to select the siteaccess.





Use host match when you want to select the siteaccess based on the host part of the URL. Host matching can be used in four different modes or be disabled completely. The available options are:

  • disabled - Disables host matching. If host matching is specified in the MatchOrder setting it will be ignored.
  • map - Select the siteaccess based on the complete hostname. Specify the mapping between a hostname and the siteaccess to use with the HostMatchMapItems setting.
  • element - The siteaccess is specified by a one of the subdomains that are part of the hostname. Select which part of the hostname (separated by dots) that specifies the siteaccess with the HostMatchElement setting.
  • text - The siteaccess is given by some arbitrary part of the hostname with a fixed pre and post text. Set the pre and post text with the HostMatchSubtextPre and HostMatchSubtextPost settings.
  • regexp - Use a regular expression to obtain the siteaccess name from the hostname. Set the regular expression and the submatch to use with the HostMatchRegexp and HostMatchRegexpItem settings.


Map matching


This configuration uses the map hostmatching type. If the site is acccessed using the domain the siteaccess named user is used. If the domain is used the admin siteaccess is used instead.

Element matching


This configuration uses the second element in the hostname as siteaccess using element matching. For example the hostname yields the siteaccess second.

Text matching


This text mathcing configuration uses everything between my and as the siteaccess. E.g would produce the siteaccess admin. The hostname produces the siteaccessname user.

Regexp matching


This regexp setup uses the regular expression ^(.+)\.example\.com to match anything in front of The first match is set up to hold the siteaccess. E.g the hostname yields the siteaccess test.

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

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


There are no comments.