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

HostName

Summary

Sets the hostname of the machine generating the static content.

Usage

 

Hostname= hostname[: portnumber]

Description

HostName sets the host of the server that serves the uncached pages. The static cache feature uses this to retrieve the generated content if there is no cache available.

Examples

HostName=localhost

The server that generates the pages is available on localhost.

Frederik Holljen (04/05/2005 10:44 am)

Frederik Holljen (04/05/2005 11:04 am)


Comments

  • Beware of localhost!

    the static cache generator uses the content tree to request all the pages connected to the nodes which it contains. It works by simulating a "browser" which makes the requests as an anonymous user. so, localhost might not work for you. you have to specify your host name. e.g. www.example.com in the HostName directive

    NOTE: I was unable to make it work with http://www.example.com . it did work when omitting the http://
  • clarification

    .... so as to make it www.example.com