Optimize checksession endpoint (#595)
parent
83c3b50355
commit
b94a337a05
@ -1,54 +0,0 @@ |
||||
#======================================================================== |
||||
# Apache configuration for LemonLDAP::NG Handler |
||||
#======================================================================== |
||||
# This file implements the reload virtualhost that permits to reload |
||||
# configuration without restarting server, and some common instructions. |
||||
# You need then to declare this vhost in reloadUrls (in the manager |
||||
# interface if this server doesn't host the manager itself): |
||||
# |
||||
# KEY : VALUE |
||||
# host-or-IP:port : http://reload.example.com/reload |
||||
# |
||||
# IMPORTANT: |
||||
# To protect applications, see test-apache.conf template in example files |
||||
|
||||
# Uncomment this if no previous NameVirtualHost declaration |
||||
#NameVirtualHost __VHOSTLISTEN__ |
||||
|
||||
# Load LemonLDAP::NG Handler |
||||
PerlRequire Lemonldap/NG/Handler.pm |
||||
|
||||
# Common error page and security parameters |
||||
ErrorDocument 403 http://auth.__DNSDOMAIN__/?lmError=403 |
||||
ErrorDocument 500 http://auth.__DNSDOMAIN__/?lmError=500 |
||||
ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503 |
||||
|
||||
<VirtualHost __VHOSTLISTEN__> |
||||
ServerName reload.__DNSDOMAIN__ |
||||
|
||||
# Configuration reload mechanism (only 1 per physical server is |
||||
# needed): choose your URL to avoid restarting Apache when |
||||
# configuration change |
||||
<Location /reload> |
||||
Order deny,allow |
||||
Deny from all |
||||
Allow from 127.0.0.0/8 ::1 |
||||
PerlHeaderParserHandler Lemonldap::NG::Handler->reload |
||||
</Location> |
||||
|
||||
# Uncomment this to activate status module |
||||
#<Location /status> |
||||
# Order deny,allow |
||||
# Deny from all |
||||
# Allow from 127.0.0.0/8 ::1 |
||||
# SetHandler perl-script |
||||
# PerlHandler Lemonldap::NG::Handler->status |
||||
# # You may have to uncomment the next directive to skip |
||||
# # an upper PerlHeaderParserHandler directive |
||||
# #PerlHeaderParserHandler Apache::Constants::DECLINED |
||||
#</Location> |
||||
|
||||
# Uncomment this if site if you use SSL only |
||||
#Header set Strict-Transport-Security 15768000 |
||||
</VirtualHost> |
||||
|
@ -1,88 +0,0 @@ |
||||
#==================================================================== |
||||
# 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 (FCGI scripts) |
||||
DocumentRoot __PORTALDIR__ |
||||
<Directory __PORTALDIR__> |
||||
Order allow,deny |
||||
Allow from all |
||||
Options +ExecCGI +FollowSymLinks |
||||
</Directory> |
||||
RewriteEngine On |
||||
RewriteCond "%{REQUEST_FILENAME}" "!^/(?:(?:static|javascript|favicon).*|.*\.fcgi)$" |
||||
RewriteRule "^/(.+)$" "/index.fcgi/$1" [PT] |
||||
|
||||
<Files *.fcgi> |
||||
SetHandler fcgid-script |
||||
Options +ExecCGI |
||||
</Files> |
||||
|
||||
# Static files |
||||
Alias /static/ __PORTALSTATICDIR__/ |
||||
<Directory __PORTALSTATICDIR__> |
||||
Order allow,deny |
||||
Allow from all |
||||
Options +FollowSymLinks |
||||
</Directory> |
||||
<Location /static/> |
||||
<IfModule mod_expires.c> |
||||
ExpiresActive On |
||||
ExpiresDefault "access plus 1 month" |
||||
</IfModule> |
||||
</Location> |
||||
|
||||
<IfModule mod_dir.c> |
||||
DirectoryIndex index.fcgi index.html |
||||
</IfModule> |
||||
|
||||
# SOAP functions for sessions management (disabled by default) |
||||
<Location /index.fcgi/adminSessions> |
||||
Order deny,allow |
||||
Deny from all |
||||
</Location> |
||||
|
||||
# SOAP functions for sessions access (disabled by default) |
||||
<Location /index.fcgi/sessions> |
||||
Order deny,allow |
||||
Deny from all |
||||
</Location> |
||||
|
||||
# SOAP functions for configuration access (disabled by default) |
||||
<Location /index.fcgi/config> |
||||
Order deny,allow |
||||
Deny from all |
||||
</Location> |
||||
|
||||
# SOAP functions for notification insertion (disabled by default) |
||||
<Location /index.fcgi/notification> |
||||
Order deny,allow |
||||
Deny from all |
||||
</Location> |
||||
|
||||
# Enabe compression |
||||
<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> |
||||
|
||||
# Uncomment this if site if you use SSL only |
||||
#Header set Strict-Transport-Security 15768000 |
||||
</VirtualHost> |
||||
|
@ -1,37 +0,0 @@ |
||||
#==================================================================== |
||||
# Apache configuration for LemonLDAP::NG sample applications |
||||
#==================================================================== |
||||
|
||||
# Uncomment this if no previous NameVirtualHost declaration |
||||
#NameVirtualHost __VHOSTLISTEN__ |
||||
|
||||
# Sample application |
||||
<VirtualHost __VHOSTLISTEN__> |
||||
ServerName test1.__DNSDOMAIN__ |
||||
ServerAlias test2.__DNSDOMAIN__ |
||||
|
||||
# SSO protection |
||||
PerlHeaderParserHandler Lemonldap::NG::Handler |
||||
|
||||
# DocumentRoot |
||||
DocumentRoot __TESTDIR__ |
||||
<Directory __TESTDIR__> |
||||
Order allow,deny |
||||
Allow from all |
||||
Options +ExecCGI |
||||
</Directory> |
||||
|
||||
# Perl script (application test is written in Perl) |
||||
<Files *.pl> |
||||
SetHandler perl-script |
||||
PerlHandler Apache::Registry |
||||
</Files> |
||||
|
||||
# Directory index |
||||
<IfModule mod_dir.c> |
||||
DirectoryIndex index.pl index.html |
||||
</IfModule> |
||||
|
||||
# Uncomment this if site if you use SSL only |
||||
#Header set Strict-Transport-Security 15768000 |
||||
</VirtualHost> |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue