2014-11-04 18:20:10 +01:00
|
|
|
#====================================================================
|
|
|
|
# Apache configuration for LemonLDAP::NG sample applications
|
|
|
|
#====================================================================
|
|
|
|
|
|
|
|
# Uncomment this if no previous NameVirtualHost declaration
|
|
|
|
#NameVirtualHost __VHOSTLISTEN__
|
2017-02-11 08:47:22 +01:00
|
|
|
PerlModule Lemonldap::NG::Handler::ApacheMP2::Menu
|
2014-11-04 18:20:10 +01:00
|
|
|
|
|
|
|
# Sample application
|
|
|
|
<VirtualHost __VHOSTLISTEN__>
|
|
|
|
ServerName test1.__DNSDOMAIN__
|
|
|
|
ServerAlias test2.__DNSDOMAIN__
|
|
|
|
|
|
|
|
# SSO protection
|
2018-09-22 20:39:56 +02:00
|
|
|
PerlHeaderParserHandler Lemonldap::NG::Handler::ApacheMP2
|
2014-11-04 18:20:10 +01:00
|
|
|
|
|
|
|
# DocumentRoot
|
|
|
|
DocumentRoot __TESTDIR__
|
|
|
|
<Directory __TESTDIR__>
|
|
|
|
<IfVersion >= 2.3>
|
|
|
|
Require all granted
|
|
|
|
</IfVersion>
|
|
|
|
<IfVersion < 2.3>
|
|
|
|
Order Deny,Allow
|
|
|
|
Allow from all
|
|
|
|
</IfVersion>
|
|
|
|
Options +ExecCGI
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Perl script (application test is written in Perl)
|
|
|
|
<Files *.pl>
|
|
|
|
SetHandler perl-script
|
|
|
|
PerlResponseHandler ModPerl::Registry
|
|
|
|
|
|
|
|
# Display Menu
|
2017-02-11 08:47:22 +01:00
|
|
|
PerlOutputFilterHandler Lemonldap::NG::Handler::ApacheMP2::Menu->run
|
2014-11-04 18:20:10 +01:00
|
|
|
|
|
|
|
</Files>
|
|
|
|
|
|
|
|
# Directory index
|
|
|
|
<IfModule mod_dir.c>
|
|
|
|
DirectoryIndex index.pl index.html
|
|
|
|
</IfModule>
|
|
|
|
|
2016-02-11 10:36:12 +01:00
|
|
|
# Uncomment this if site if you use SSL only
|
|
|
|
#Header set Strict-Transport-Security 15768000
|
2014-11-04 18:20:10 +01:00
|
|
|
</VirtualHost>
|