Apache::MotdApache::Motd is a freely available Perl program that provides a 'message of the day' alert to visitors of your web site. Installing Apache::Motd
Configuring Apache::MotdCreate a virtual server, or edit an existing virtual server. Enable Perl Extensions (API Support: Perl). On the Perl configuration page, you must enter the location on the site that you would like the message of the day to be displayed on. Typically, this would be '/' so that your whole site will get the message. You can of course configure multiple messages, for different sections of your site. The following example assumes that you are using the path '/'. Enter this path in the section of the page entitled 'Add a new URL prefix' and apply changes. Now, you can specify additional configuration to tell Zeus to use Apache::Motd for the path '/'. In the 'Handlers' section, select the stage 'Header Parser' from the list, and type in 'Apache::Motd' into the box below. You must also configure Apache::Motd with the file that will be shown when viewers first visit your site. This is specified by setting the Perl variable 'MessageFile'. To do this, find the section of the GUI page entitled 'Adding a Perl Configuration Variable', type in the variable name 'MessageFile' and in the value box, enter the path to the message of the day file on the web server. (This is expected to be a full path, not relative to the document root). After entering this first variable, you will need to click the 'apply changes' button. The page will be updated, showing the new content generator perl module, and the configuration key that you just added. Finally, remember to commit the changes to the virtual server by clicking on the link at the top of the page. Testing Apache::MotdNow, Apache::Motd should be running. When you visit your web site, you will be temporarily redirected to the message page. Your browser should then automatically take you back to the original page that you requested. By default, Apache::Motd will store cookies on clients to make sure that viewers only see the message of the day once. Apache::Motd has many other configuration settings, letting you control the behaviour of the module, such as how long to redirect users for, how often to re-show the message, and so on. Please read the README file that comes with the software distribution for further documentation. Additional configuration parameters can be set in exactly the same way as described above. TroubleshootingError messages are logged to the file $ZEUSHOME/web/log/errors. Review this file if you encounter any problems.
Content Manager
[Administrator] 14 December 2005
|
Recent Articles
Other Resources
|


