NAME

Apache::Gestinanna - Apache support for Gestinanna

SYNOPSIS

In httpd.conf:

PerlModule +AxKit
PerlModule +Apache::Gestinanna

<VirtualHost *>
  ServerName xxx.yyy.com
  PerlTransHandler 'sub { my $r = shift; my $uri = $r -> uri(); \
                          if($uri =~ m{\\.xml$} || $uri =~ m{/$}) { \
                              $r -> filename("/index.xml"); \
                              return Apache::Constants::OK; \
                          } \
                          return Apache::Constants::DECLINED; \
                    }'
  <Location "/">
    GestinannaConf /usr/local/etc/apache/gst.xml

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

    AxContentProvider Apache::AxKit::Provider::Gestinanna

    AxHandleDirs On
 
    AxAddPlugin Apache::AxKit::Plugin::Passthru

    AxAddRootProcessor text/xsl /stylesheets/doc.xsl document
    AxAddProcessor     text/xsl /stylesheets/final.xsl

    AxGzipOutput On
  </Location>

  <Location "/stylesheets/">
    SetHandler default
  </Location>

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

In gst.xml:

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

DESCRIPTION

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

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.