2012-12-18 14:46:08 +01:00
|
|
|
#====================================================================
|
|
|
|
# Apache configuration for LemonLDAP::NG sample applications
|
|
|
|
#====================================================================
|
|
|
|
|
|
|
|
# Uncomment this if no previous NameVirtualHost declaration
|
|
|
|
#NameVirtualHost __VHOSTLISTEN__
|
|
|
|
|
|
|
|
# Sample application
|
|
|
|
<VirtualHost __VHOSTLISTEN__>
|
|
|
|
ServerName test1.__DNSDOMAIN__
|
|
|
|
ServerAlias test2.__DNSDOMAIN__
|
|
|
|
|
|
|
|
# SSO protection
|
2014-05-21 19:44:24 +02:00
|
|
|
PerlHeaderParserHandler Lemonldap::NG::Handler
|
2012-12-18 14:46:08 +01:00
|
|
|
|
|
|
|
# DocumentRoot
|
|
|
|
DocumentRoot __TESTDIR__
|
|
|
|
<Directory __TESTDIR__>
|
2014-03-05 20:17:35 +01:00
|
|
|
Order allow,deny
|
2012-12-18 14:46:08 +01:00
|
|
|
Allow from all
|
|
|
|
Options +ExecCGI
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Perl script (application test is written in Perl)
|
|
|
|
<Files *.pl>
|
|
|
|
SetHandler perl-script
|
|
|
|
PerlHandler Apache::Registry
|
|
|
|
</Files>
|
|
|
|
|
|
|
|
# Directory index
|
|
|
|
<IfModule mod_dir.c>
|
|
|
|
DirectoryIndex index.pl index.html
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
</VirtualHost>
|
|
|
|
|