test-apache2.4.conf 1.15 KB
Newer Older
Yadd's avatar
Yadd committed
1
2
3
4
5
6
#====================================================================
# Apache configuration for LemonLDAP::NG sample applications
#====================================================================

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

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

    # SSO protection
dcoutadeur dcoutadeur's avatar
   
dcoutadeur dcoutadeur committed
15
    PerlHeaderParserHandler Lemonldap::NG::Handler
Yadd's avatar
Yadd committed
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
Yadd's avatar
Yadd committed
30
        PerlOutputFilterHandler Lemonldap::NG::Handler::ApacheMP2::Menu->run
Yadd's avatar
Yadd committed
31
32
33
34
35
36
37
38

    </Files>

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

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