From 00ef7ef7829c55de170e70f5ef41db89a85abd4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Wed, 28 Jul 2010 14:34:38 +0000 Subject: [PATCH] Create reload virtualhost, so that test applications configuration can be safely removed (#130) --- build/lemonldap-ng/_example/etc/for_etc_hosts | 2 +- build/lemonldap-ng/_example/etc/handler-apache2.conf | 6 ++++++ modules/lemonldap-ng-common/lemonldap-ng.ini | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build/lemonldap-ng/_example/etc/for_etc_hosts b/build/lemonldap-ng/_example/etc/for_etc_hosts index 4507c7672..92cf1d95c 100644 --- a/build/lemonldap-ng/_example/etc/for_etc_hosts +++ b/build/lemonldap-ng/_example/etc/for_etc_hosts @@ -1,2 +1,2 @@ -127.0.0.1 auth.__DNSDOMAIN__ manager.__DNSDOMAIN__ test1.__DNSDOMAIN__ test2.__DNSDOMAIN__ +127.0.0.1 auth.__DNSDOMAIN__ manager.__DNSDOMAIN__ test1.__DNSDOMAIN__ test2.__DNSDOMAIN__ reload.__DNSDOMAIN__ diff --git a/build/lemonldap-ng/_example/etc/handler-apache2.conf b/build/lemonldap-ng/_example/etc/handler-apache2.conf index 80cb47187..42e844d9d 100644 --- a/build/lemonldap-ng/_example/etc/handler-apache2.conf +++ b/build/lemonldap-ng/_example/etc/handler-apache2.conf @@ -40,6 +40,11 @@ ErrorDocument 500 http://auth.__DNSDOMAIN__/error.pl?error=500 DirectoryIndex index.pl index.html + + + + ServerName reload.__DNSDOMAIN__ + # Configuration reload mechanism (only 1 per physical server is # needed): choose your URL to avoid restarting Apache when # configuration change @@ -60,3 +65,4 @@ ErrorDocument 500 http://auth.__DNSDOMAIN__/error.pl?error=500 + diff --git a/modules/lemonldap-ng-common/lemonldap-ng.ini b/modules/lemonldap-ng-common/lemonldap-ng.ini index 34719b241..089506b37 100644 --- a/modules/lemonldap-ng-common/lemonldap-ng.ini +++ b/modules/lemonldap-ng-common/lemonldap-ng.ini @@ -208,4 +208,4 @@ status = 0 [apply] # URL used to reload configuration -test1.__DNSDOMAIN__=http://test1.__DNSDOMAIN__/reload +reload.__DNSDOMAIN__ = http://reload.__DNSDOMAIN__/reload