Apache::AxKit::StyleChooser::Hostname - Choose stylesheet using the hostname of the HTTP request
AxAddPlugin Apache::AxKit::StyleChooser::Hostname
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.
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.
xml.server.com
server.com
See the AxStyleName AxKit configuration directive for more information on how to setup named styles.
AxKit.
To install Apache::AxKit::StyleChooser::Hostname, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::AxKit::StyleChooser::Hostname
CPAN shell
perl -MCPAN -e shell install Apache::AxKit::StyleChooser::Hostname
For more information on module installation, please visit the detailed CPAN module installation guide.