2010-03-12 12:46:01 +01:00
|
|
|
#====================================================================
|
|
|
|
# Apache configuration for LemonLDAP::NG Manager
|
|
|
|
#====================================================================
|
|
|
|
|
|
|
|
# Uncomment this if no previous NameVirtualHost declaration
|
|
|
|
#NameVirtualHost __VHOSTLISTEN__
|
|
|
|
|
|
|
|
# Manager virtual host (manager.__DNSDOMAIN__)
|
|
|
|
<VirtualHost __VHOSTLISTEN__>
|
|
|
|
ServerName manager.__DNSDOMAIN__
|
|
|
|
|
|
|
|
# DocumentRoot
|
|
|
|
DocumentRoot __MANAGERDIR__
|
|
|
|
<Directory __MANAGERDIR__>
|
|
|
|
Order deny,allow
|
2012-01-29 23:05:19 +01:00
|
|
|
Allow from all
|
2012-04-03 11:00:09 +02:00
|
|
|
Options +ExecCGI +FollowSymLinks
|
2010-03-12 12:46:01 +01:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# On-line documentation
|
|
|
|
Alias /doc/ __DOCDIR__
|
2010-11-06 11:28:33 +01:00
|
|
|
Alias /lib/ __DOCDIR__lib/
|
2010-03-12 12:46:01 +01:00
|
|
|
<Directory __DOCDIR__>
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
2010-11-19 15:42:41 +01:00
|
|
|
ErrorDocument 404 /notfound.html
|
2012-04-03 11:12:05 +02:00
|
|
|
Options +FollowSymLinks
|
2010-03-12 12:46:01 +01:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Perl script
|
2010-10-31 11:39:43 +01:00
|
|
|
# Note: to avoid manager stay in memory, we don't use ModPerl::Registry
|
|
|
|
# by default. Change this to increase manager performances
|
2010-03-12 12:46:01 +01:00
|
|
|
<Files *.pl>
|
2010-10-31 11:39:43 +01:00
|
|
|
SetHandler cgi-script
|
|
|
|
#SetHandler perl-script
|
|
|
|
#PerlHandler Apache::Registry
|
2010-03-12 12:46:01 +01:00
|
|
|
</Files>
|
|
|
|
|
|
|
|
# Directory index
|
|
|
|
<IfModule mod_dir.c>
|
|
|
|
DirectoryIndex index.pl index.html
|
|
|
|
</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>
|
|
|
|
|