#==================================================================== # Apache configuration for LemonLDAP::NG Portal #==================================================================== # Uncomment this if no previous NameVirtualHost declaration #NameVirtualHost *:80 # Portal Virtual Host (auth.example.com) <VirtualHost *:80> ServerName auth.example.com # DocumentRoot DocumentRoot /usr/share/lemonldap-ng/portal/ <Directory /usr/share/lemonldap-ng/portal/> Order allow,deny Allow from all Options +ExecCGI </Directory> # Perl script <Files *.pl> SetHandler perl-script PerlResponseHandler ModPerl::Registry </Files> # Directory index <IfModule mod_dir.c> DirectoryIndex index.pl index.html </IfModule> # SOAP functions for sessions management (disabled by default) <Directory /usr/share/lemonldap-ng/portal//index.pl/adminSessions> Order deny,allow Deny from all </Directory> # SOAP functions for sessions access (disabled by default) <Directory /usr/share/lemonldap-ng/portal//index.pl/sessions> Order deny,allow Deny from all </Directory> # SOAP functions for configuration access (disabled by default) <Directory /usr/share/lemonldap-ng/portal//index.pl/config> Order deny,allow Deny from all </Directory> # SOAP functions for notification insertion (disabled by default) <Directory /usr/share/lemonldap-ng/portal//index.pl/notification> Order deny,allow Deny from all </Directory> # SAML2 <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/saml/metadata /metadata.pl RewriteRule ^/saml/.* /index.pl </IfModule> </VirtualHost> # Best performance under ModPerl::Registry # Uncomment this to increase performance of Portal <Perl> require Lemonldap::NG::Portal::SharedConf; Lemonldap::NG::Portal::SharedConf->compile( qw(delete header cache read_from_client cookie redirect unescapeHTML)); # Uncomment this line if you use Lemonldap::NG menu require Lemonldap::NG::Portal::Menu; # Uncomment this line if you use portal SOAP capabilities require SOAP::Lite; </Perl>