NAME

Apache::Gestinanna - Apache support for Gestinanna

SYNOPSIS

In httpd.conf:

PerlModule +AxKit
PerlModule +Apache::Gestinanna

<VirtualHost *>
  ServerName xxx.yyy.com
  <Location "/">
    GestinannaConf etc/apache/gst.xml
    GestinannaSite dbi:Gestinanna:1

    SetHandler axkit
    AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
    AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript

    AxContentProvider Apache::AxKit::Provider::Gestinanna
    AxStyleProvider   Apache::AxKit::Provider::Gestinanna
    
    AxAddProcessor     text/xsl xslt:/theme/_default/final
    #TODO: AxAddDynamicProcessor Apache::Gestinanna::AxKitStyleProvider

    AxHandleDirs On
 

    AxGzipOutput On
  </Location>

  <Location "/images/">
    SetHandler default
  </Location>
</VirtualHost>

In gst.xml:

<resources>
  <pool name="dbi">
    <alzabo datasource="dbi:mysql:SchemaName:localhost"
         schema="SchemaName"
         username="username"
         password="password"
         PrintError="1"
    />
  </pool>
</resources>

DESCRIPTION

This module manages the Apache request cycle for the Gestinanna Application Framework.

Apache Directives

GestinannaConf file

This designates the file from which the resource configuration is taken. Each resource pool is named and consists of one or more configurations that should point to the same resource (but perhaps on different hosts).

GestinannaSite pool_name:schema:site_number

This designates the site that is being served by the current configuration. This is a triplet consisting of the name of the resource pool (which should be a DBI connection), the schema name (or database name), and the site number.

This allows multiple sites to share the same resource configuration.

AUTHOR

James G. Smith, <jsmith@cpan.org>

COPYRIGHT

Copyright (C) 2003, 2004 Texas A&M University. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.