test-apache2.4.conf 1.42 KB
Newer Older
Xavier Guimard's avatar
Xavier Guimard committed
1 2 3 4
#====================================================================
# Apache configuration for LemonLDAP::NG sample applications
#====================================================================

5
PerlModule Lemonldap::NG::Handler::ApacheMP2::Menu
Xavier Guimard's avatar
Xavier Guimard committed
6 7 8 9 10 11

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

12 13 14 15 16 17 18 19
    # Uncomment this if you are running behind a reverse proxy and want
    # LemonLDAP::NG to see the real IP address of the end user
    # Adjust the settings to match the IP address of your reverse proxy
    # and the header containing the original IP address
    #
    #RemoteIPHeader X-Forwarded-For
    #RemoteIPInternalProxy 127.0.0.1

Xavier Guimard's avatar
Xavier Guimard committed
20
    # SSO protection
21
    PerlHeaderParserHandler Lemonldap::NG::Handler::ApacheMP2
Xavier Guimard's avatar
Xavier Guimard committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35

    # 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
36
        PerlOutputFilterHandler Lemonldap::NG::Handler::ApacheMP2::Menu->run
Xavier Guimard's avatar
Xavier Guimard committed
37 38 39 40 41 42 43 44

    </Files>

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

45
    # Uncomment this if site if you use SSL only
Christophe Maudoux's avatar
Christophe Maudoux committed
46
    #Header set Strict-Transport-Security "max-age=15768000"
Xavier Guimard's avatar
Xavier Guimard committed
47
</VirtualHost>