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

5
PerlModule Lemonldap::NG::Handler::ApacheMP2::Menu
6 7 8 9 10 11 12

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

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

    # 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
28
        PerlOutputFilterHandler Lemonldap::NG::Handler::ApacheMP2::Menu->run
29 30 31 32 33 34 35 36

    </Files>

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

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