42a1e43f73
* Install metadata.pl * SAML URL rewrite rules
68 lines
1.8 KiB
Plaintext
68 lines
1.8 KiB
Plaintext
<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>
|
|
|
|
# SOAP functions for sessions management (disabled by default)
|
|
<Directory /var/lib/lemonldap-ng/portal/index.pl/adminSessions>
|
|
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>
|
|
|
|
# SAML URL rewriting
|
|
RewriteEngine On
|
|
RewriteRule ^/saml/metadata /metadata.pl
|
|
RewriteRule ^/saml/.* /index.pl
|
|
|
|
</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>
|
|
|