104 lines
2.9 KiB
Plaintext
104 lines
2.9 KiB
Plaintext
|
#====================================================================
|
||
|
# 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__>
|
||
|
Require all granted
|
||
|
Options +ExecCGI +FollowSymLinks
|
||
|
</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)
|
||
|
<Location /index.pl/adminSessions>
|
||
|
Require all denied
|
||
|
</Location>
|
||
|
|
||
|
# SOAP functions for sessions access (disabled by default)
|
||
|
<Location /index.pl/sessions>
|
||
|
Require all denied
|
||
|
</Location>
|
||
|
|
||
|
# SOAP functions for configuration access (disabled by default)
|
||
|
<Location /index.pl/config>
|
||
|
Require all denied
|
||
|
</Location>
|
||
|
|
||
|
# SOAP functions for notification insertion (disabled by default)
|
||
|
<Location /index.pl/notification>
|
||
|
Require all denied
|
||
|
</Location>
|
||
|
|
||
|
# SAML2 Issuer
|
||
|
<IfModule mod_rewrite.c>
|
||
|
RewriteEngine On
|
||
|
RewriteRule ^/saml/metadata /metadata.pl
|
||
|
RewriteRule ^/saml/.* /index.pl
|
||
|
</IfModule>
|
||
|
|
||
|
# CAS Issuer
|
||
|
<IfModule mod_rewrite.c>
|
||
|
RewriteEngine On
|
||
|
RewriteRule ^/cas/.* /index.pl
|
||
|
</IfModule>
|
||
|
|
||
|
# OpenID Issuer
|
||
|
<IfModule mod_rewrite.c>
|
||
|
RewriteEngine On
|
||
|
RewriteRule ^/openidserver/.* /index.pl
|
||
|
</IfModule>
|
||
|
|
||
|
<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>
|
||
|
<Location /skins/>
|
||
|
<IfModule mod_expires.c>
|
||
|
ExpiresActive On
|
||
|
ExpiresDefault "access plus 1 month"
|
||
|
</IfModule>
|
||
|
</Location>
|
||
|
</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>
|
||
|
|