Closes #178 "same Apache conf files for Debian and others"

This commit is contained in:
Xavier Guimard 2010-10-11 05:58:20 +00:00
parent 27f9353fe1
commit 6bd8c15303
8 changed files with 2 additions and 269 deletions

View File

@ -1,26 +0,0 @@
<VirtualHost *>
ServerName protected.example.com
PerlRequire /var/lib/lemonldap-ng/handler/MyHandler.pm
# Area protection
PerlHeaderParserHandler My::Package
# 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
PerlHeaderParserHandler My::Package->refresh
</Location>
# Uncomment this to activate status module
#<Location /status>
# Order deny,allow
# Deny from all
# Allow from 127.0.0.0/8
# PerlHeaderParserHandler My::Package->status
#</Location>
</VirtualHost>

View File

@ -1,27 +0,0 @@
PerlOptions +GlobalRequest
<VirtualHost *>
ServerName protected.example.com
PerlRequire /var/lib/lemonldap-ng/handler/MyHandler.pm
# Area protection
PerlHeaderParserHandler My::Package
# 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
PerlHeaderParserHandler My::Package->refresh
</Location>
# Uncomment this to activate status module
#<Location /status>
# Order deny,allow
# Deny from all
# Allow from 127.0.0.0/8
# PerlHeaderParserHandler My::Package->status
#</Location>
</VirtualHost>

View File

@ -1,6 +1,6 @@
/usr/share/perl5/Lemonldap/NG/Manager*
/usr/share/perl5/auto/Lemonldap/NG/Manager
debian/manager-apache*.conf /etc/lemonldap-ng
/etc/lemonldap-ng/manager-apache*.conf
/usr/share/lemonldap-ng/manager-skins
/usr/share/lemonldap-ng/manager
/var/lib/lemonldap-ng/manager

View File

@ -6,4 +6,4 @@
/usr/share/lemonldap-ng/bin/buildPortalWSDL
/usr/share/lemonldap-ng/portal
/var/lib/lemonldap-ng/portal
debian/portal-apache*.conf /etc/lemonldap-ng
/etc/lemonldap-ng/portal-apache*.conf

View File

@ -1,24 +0,0 @@
<VirtualHost *>
ServerName manager.example.com
# DocumentRoot
DocumentRoot /var/lib/lemonldap-ng/manager
<Directory /var/lib/lemonldap-ng/manager>
Order deny,allow
Deny from all
Allow from 127.0.0.0/8
Options +ExecCGI
</Directory>
# Manager must be interpreted by Perl
<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
</Files>
<IfModule mod_dir.c>
DirectoryIndex index.pl index.html
</IfModule>
</VirtualHost>

View File

@ -1,28 +0,0 @@
<VirtualHost *:80>
ServerName manager.example.com
# DocumentRoot
DocumentRoot /var/lib/lemonldap-ng/manager
<Directory /var/lib/lemonldap-ng/manager>
Order deny,allow
Deny from all
Allow from 127.0.0.0/8
Options +ExecCGI
</Directory>
# Manager must be interpreted by Perl
<Files *.pl>
# To avoid Manager stay in memory, default is to use cgi-script
SetHandler cgi-script
# For best performances, use the following instead:
#SetHandler perl-script
#PerlResponseHandler ModPerl::Registry
</Files>
<IfModule mod_dir.c>
DirectoryIndex index.pl index.html
</IfModule>
</VirtualHost>

View File

@ -1,81 +0,0 @@
<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
PerlHandler Apache::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>
# 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>
</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>

View File

@ -1,81 +0,0 @@
<VirtualHost *:80>
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>
# 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>
</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>