lemonldap-ng/_example/etc/test-apache2.4.conf

45 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-03-05 13:21:41 +01:00
#====================================================================
# Apache configuration for LemonLDAP::NG sample applications
#====================================================================
2017-02-11 08:47:22 +01:00
PerlModule Lemonldap::NG::Handler::ApacheMP2::Menu
2014-03-05 13:21:41 +01:00
# Sample application
<VirtualHost __VHOSTLISTEN__>
ServerName test1.__DNSDOMAIN__
ServerAlias test2.__DNSDOMAIN__
# 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
2014-03-05 13:21:41 +01:00
# SSO protection
PerlHeaderParserHandler Lemonldap::NG::Handler::ApacheMP2
2014-03-05 13:21:41 +01:00
# 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
2017-02-11 08:47:22 +01:00
PerlOutputFilterHandler Lemonldap::NG::Handler::ApacheMP2::Menu->run
2014-03-05 13:21:41 +01:00
</Files>
# Directory index
<IfModule mod_dir.c>
DirectoryIndex index.pl index.html
</IfModule>
</VirtualHost>