2010-03-12 12:46:01 +01:00
|
|
|
#====================================================================
|
|
|
|
# Apache configuration for LemonLDAP::NG Portal
|
|
|
|
#====================================================================
|
|
|
|
|
|
|
|
# Uncomment this if no previous NameVirtualHost declaration
|
|
|
|
#NameVirtualHost __VHOSTLISTEN__
|
|
|
|
|
|
|
|
# Portal Virtual Host (auth.__DNSDOMAIN__)
|
|
|
|
<VirtualHost __VHOSTLISTEN__>
|
|
|
|
ServerName auth.__DNSDOMAIN__
|
|
|
|
|
|
|
|
# DocumentRoot
|
|
|
|
DocumentRoot __PORTALDIR__
|
|
|
|
<Directory __PORTALDIR__>
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
2012-04-03 11:00:09 +02:00
|
|
|
Options +ExecCGI +FollowSymLinks
|
2010-03-12 12:46:01 +01:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Perl script
|
|
|
|
<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)
|
2010-10-31 11:34:27 +01:00
|
|
|
<Location /index.pl/adminSessions>
|
2010-03-12 12:46:01 +01:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
2010-10-31 11:34:27 +01:00
|
|
|
</Location>
|
2010-03-12 12:46:01 +01:00
|
|
|
|
|
|
|
# SOAP functions for sessions access (disabled by default)
|
2010-10-31 11:34:27 +01:00
|
|
|
<Location /index.pl/sessions>
|
2010-03-12 12:46:01 +01:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
2010-10-31 11:34:27 +01:00
|
|
|
</Location>
|
2010-03-12 12:46:01 +01:00
|
|
|
|
|
|
|
# SOAP functions for configuration access (disabled by default)
|
2010-10-31 11:34:27 +01:00
|
|
|
<Location /index.pl/config>
|
2010-03-12 12:46:01 +01:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
2010-10-31 11:34:27 +01:00
|
|
|
</Location>
|
2010-03-12 12:46:01 +01:00
|
|
|
|
|
|
|
# SOAP functions for notification insertion (disabled by default)
|
2010-10-31 11:34:27 +01:00
|
|
|
<Location /index.pl/notification>
|
2010-03-12 12:46:01 +01:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
2010-10-31 11:34:27 +01:00
|
|
|
</Location>
|
2010-03-12 12:46:01 +01:00
|
|
|
|
2010-10-01 09:47:14 +02:00
|
|
|
# SAML2 Issuer
|
2010-03-12 12:46:01 +01:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/saml/metadata /metadata.pl
|
|
|
|
RewriteRule ^/saml/.* /index.pl
|
|
|
|
</IfModule>
|
|
|
|
|
2010-10-01 09:47:14 +02:00
|
|
|
# CAS Issuer
|
2010-08-23 18:41:38 +02:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/cas/.* /index.pl
|
|
|
|
</IfModule>
|
|
|
|
|
2010-10-01 09:47:14 +02:00
|
|
|
# OpenID Issuer
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/openidserver/.* /index.pl
|
|
|
|
</IfModule>
|
|
|
|
|
2010-11-06 11:28:33 +01:00
|
|
|
<Location />
|
|
|
|
<IfModule mod_deflate.c>
|
|
|
|
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css
|
|
|
|
SetOutputFilter DEFLATE
|
|
|
|
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
|
|
|
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
|
|
|
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
|
|
|
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
Header append Vary User-Agent env=!dont-vary
|
|
|
|
</IfModule>
|
|
|
|
</Location>
|
2010-11-06 11:35:30 +01:00
|
|
|
<Location /skins/>
|
2010-11-06 11:28:33 +01:00
|
|
|
<IfModule mod_expires.c>
|
|
|
|
ExpiresActive On
|
|
|
|
ExpiresDefault "access plus 1 month"
|
|
|
|
</IfModule>
|
|
|
|
</Location>
|
2010-03-12 12:46:01 +01:00
|
|
|
</VirtualHost>
|
|
|
|
|
2010-10-31 11:34:27 +01:00
|
|
|
##############################################
|
|
|
|
## Best performance under ModPerl::Registry ##
|
|
|
|
##############################################
|
|
|
|
|
|
|
|
# Uncomment this to increase performance of Portal:
|
2010-03-12 12:46:01 +01:00
|
|
|
<Perl>
|
2010-10-31 11:34:27 +01:00
|
|
|
#require Lemonldap::NG::Portal::SharedConf;
|
|
|
|
#Lemonldap::NG::Portal::SharedConf->compile(
|
|
|
|
# qw(delete header cache read_from_client cookie redirect unescapeHTML));
|
2010-03-12 12:46:01 +01:00
|
|
|
# Uncomment this line if you use Lemonldap::NG menu
|
2010-10-31 11:34:27 +01:00
|
|
|
#require Lemonldap::NG::Portal::Menu;
|
2010-03-12 12:46:01 +01:00
|
|
|
# Uncomment this line if you use portal SOAP capabilities
|
2010-10-31 11:34:27 +01:00
|
|
|
#require SOAP::Lite;
|
2010-03-12 12:46:01 +01:00
|
|
|
</Perl>
|
|
|
|
|