2007-05-01 16:53:26 +02:00
|
|
|
<VirtualHost *>
|
|
|
|
ServerName auth.example.com
|
|
|
|
|
|
|
|
# DocumentRoot
|
|
|
|
DocumentRoot /var/lib/lemonldap-ng/portal
|
|
|
|
<Directory /var/lib/lemonldap-ng/portal>
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
Options +ExecCGI
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Portal must be interpreted by Perl
|
|
|
|
<Files *.pl>
|
|
|
|
SetHandler perl-script
|
|
|
|
PerlResponseHandler ModPerl::Registry
|
|
|
|
</Files>
|
|
|
|
|
|
|
|
<IfModule mod_dir.c>
|
|
|
|
DirectoryIndex index.pl index.html
|
|
|
|
</IfModule>
|
|
|
|
|
2009-06-08 17:59:06 +02:00
|
|
|
# SOAP functions for sessions management (disabled by default)
|
2009-09-23 14:42:34 +02:00
|
|
|
<Directory /var/lib/lemonldap-ng/portal/index.pl/adminSessions>
|
2009-06-08 17:59:06 +02:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# SOAP functions for sessions access (disabled by default)
|
|
|
|
<Directory /var/lib/lemonldap-ng/portal/index.pl/sessions>
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# SOAP functions for configuration access (disabled by default)
|
|
|
|
<Directory /var/lib/lemonldap-ng/portal/index.pl/config>
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# SOAP functions for notification insertion (disabled by default)
|
|
|
|
<Directory /var/lib/lemonldap-ng/portal/index.pl/notification>
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</Directory>
|
|
|
|
|
2010-02-12 17:31:34 +01:00
|
|
|
# SAML URL rewriting
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/saml/metadata /metadata.pl
|
|
|
|
RewriteRule ^/saml/.* /index.pl
|
|
|
|
|
2007-05-01 16:53:26 +02:00
|
|
|
</VirtualHost>
|
|
|
|
|
2009-02-26 07:55:22 +01:00
|
|
|
##############################################
|
|
|
|
## Best performance under ModPerl::Registry ##
|
|
|
|
##############################################
|
|
|
|
|
2009-03-08 09:50:58 +01:00
|
|
|
# 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>
|
2009-02-26 07:55:22 +01:00
|
|
|
|