test-apache2.4.conf 1.16 KB
Newer Older
1 2 3 4 5 6
#====================================================================
# Apache configuration for LemonLDAP::NG sample applications
#====================================================================

# Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__
7
PerlModule Lemonldap::NG::Handler::ApacheMP2::Menu
8 9 10 11 12 13 14

# Sample application
<VirtualHost __VHOSTLISTEN__>
    ServerName test1.__DNSDOMAIN__
    ServerAlias test2.__DNSDOMAIN__

    # SSO protection
15
    PerlHeaderParserHandler Lemonldap::NG::Handler::ApacheMP2
16 17 18 19 20 21 22 23 24 25 26 27 28 29

    # DocumentRoot
    DocumentRoot __TESTDIR__
    <Directory __TESTDIR__>
        Require all granted
        Options +ExecCGI
    </Directory>

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

        # Display Menu
30
        PerlOutputFilterHandler Lemonldap::NG::Handler::ApacheMP2::Menu->run
31 32 33 34 35 36 37 38

    </Files>

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

39 40
    # Uncomment this if site if you use SSL only
    #Header set Strict-Transport-Security 15768000
41
</VirtualHost>