Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > a100f0997407ff82957e996a98fb9db2 > files > 6

lemonldap-ng-1.0-0.3.rc1mdv2011.0.noarch.rpm

#====================================================================
# Apache configuration for LemonLDAP::NG Handler
#====================================================================

# Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost *:80

# Load LemonLDAP::NG Handler
PerlOptions +GlobalRequest
PerlRequire /usr/share/lemonldap-ng/handler/MyHandler.pm

# Common error page and security parameters
ErrorDocument 403 http://auth.example.com/error.pl?error=403
ErrorDocument 500 http://auth.example.com/error.pl?error=500

# Sample application
<VirtualHost *:80>
    ServerName test1.example.com
    ServerAlias test2.example.com

    # SSO protection
    PerlHeaderParserHandler My::Package

    # DocumentRoot
    DocumentRoot /usr/share/lemonldap-ng/test/
    <Directory /usr/share/lemonldap-ng/test/>
        Order deny,allow
        Allow from all
        Options +ExecCGI
    </Directory>

    # Perl script (application test is written in Perl)
    <Files *.pl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
    </Files>

    # Directory index
    <IfModule mod_dir.c>
        DirectoryIndex index.pl index.html
    </IfModule>

    # Configuration reload mechanism (only 1 per physical server is
    # needed): choose your URL to avoid restarting Apache when
    # configuration change
    <Location /reload>
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/8
        PerlHeaderParserHandler My::Package->refresh
    </Location>

    # Uncomment this to activate status module
    #<Location /status>
    #    Order deny,allow
    #    Deny from all
    #    Allow from 127.0.0.0/8
    #    PerlHeaderParserHandler My::Package->status
    #</Location>

</VirtualHost>