SlimBook - Setup

The SlimBook handler can be integrated with the Apache web server to dynamic render all XML document. Create a config protected file and include in your virtual host definition:

cd $appdir/slimbook
cp config/apache.conf.in config/apache.conf

Edit apache.conf and include it in your Apache configuration file. The $appdir is some directory outside of your web root.

Invoking the handler script

Example config/apache.conf file that passes all XML document request to the handler script:

        AliasMatch ^(/slimbook/.*.xml) /var/www/localhost/apps/slimbook/public/handler.php
        <Directory /var/www/localhost/apps/slimbook>
            Allow from all
        </Directory>

Custom XML document extension can be used to selective filter out those XML documents that should rendered.