Commit 6bd8c153 authored by Xavier Guimard's avatar Xavier Guimard

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

parent 27f9353f
<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>
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>
/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
......
......@@ -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
<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>
<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>
<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>
<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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment