Lemonldap::NG::Handler::Vhost - Perl extension for building a Lemonldap::NG


Lemonldap-NG-Handler documentation  | view source Contained in the Lemonldap-NG-Handler distribution.

Index


NAME

Top

Lemonldap::NG::Handler::Vhost - Perl extension for building a Lemonldap::NG compatible handler able to manage Apache virtual hosts.

SYNOPSIS

Top

Create your own package:

  package My::Package;
  use Lemonldap::NG::Handler::Vhost;

  # IMPORTANT ORDER
  our @ISA = qw (Lemonldap::NG::Handler::Vhost Lemonldap::NG::Handler::Simple);

  __PACKAGE__->init ( { locationRules => {
             'vhost1.dc.com' => {
                 'default' => '$ou =~ /brh/'
             },
             'vhost2.dc.com' => {
                 '^/pj/.*$'       => '$qualif="opj"',
                 '^/rh/.*$'       => '$ou=~/brh/',
                 '^/rh_or_opj.*$' => '$qualif="opj" or $ou=~/brh/',
                 default          => 'accept',
             },
             # Put here others Lemonldap::NG::Handler::Simple options
           }
         );

Call your package in <apache-directory>/conf/httpd.conf

  PerlRequire MyFile
  PerlHeaderParserHandler My::Package

DESCRIPTION

Top

This library provides a way to protect Apache virtual hosts with Lemonldap::NG.

INITIALISATION PARAMETERS

Lemonldap::NG::Handler::Vhost splits the locationRules parameter into a hash reference which contains anonymous hash references as used by Lemonldap::NG::Handler::Simple.

SEE ALSO

Top

Lemonldap::NG::Handler(3), http://lemonldap-ng.org/

AUTHOR

Top

Xavier Guimard, <x.guimard@free.fr>

BUG REPORT

Top

Use OW2 system to report bug or ask for features: http://jira.ow2.org

DOWNLOAD

Top

Lemonldap::NG is available at http://forge.objectweb.org/project/showfiles.php?group_id=274

COPYRIGHT AND LICENSE

Top


Lemonldap-NG-Handler documentation  | view source Contained in the Lemonldap-NG-Handler distribution.