NAME

Apache::AxKit::StyleChooser::Hostname - Choose stylesheet using the hostname of the HTTP request

SYNOPSIS

AxAddPlugin Apache::AxKit::StyleChooser::Hostname

DESCRIPTION

This module lets you pick a stylesheet based on the domain name of the HTTP request. To use it, simply add this module as an AxKit plugin that will be run before main AxKit processing is done.

AxAddPlugin Apache::AxKit::StyleChooser::Hostname  

Then simply by referencing your xml files as follows:

http://xml.server.com/myfile.xml

or

http://www.server.com/myfile.xml

or whatever site aliases you have configured. In the above example, the two styles that will be used will be xml.server.com and server.com, respectively.

See the AxStyleName AxKit configuration directive for more information on how to setup named styles.

SEE ALSO

AxKit.