From 3aaf1c9aa1add34d9a8ab241b55e18503070211d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Deltombe?= Date: Thu, 19 Jun 2014 17:12:45 +0000 Subject: [PATCH] Add IPv6 local subnet in default handler Apache|Nginx config file --- _example/etc/handler-apache.conf | 4 ++-- _example/etc/handler-apache2.4.conf | 4 ++-- _example/etc/handler-apache2.conf | 4 ++-- _example/etc/handler-nginx.conf | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/_example/etc/handler-apache.conf b/_example/etc/handler-apache.conf index b40f5cf62..c1c70bf5f 100644 --- a/_example/etc/handler-apache.conf +++ b/_example/etc/handler-apache.conf @@ -22,7 +22,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503 Order deny,allow Deny from all - Allow from 127.0.0.0/8 + Allow from 127.0.0.0/8 ::1 PerlHeaderParserHandler Lemonldap::NG::Handler->reload @@ -30,7 +30,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503 # # Order deny,allow # Deny from all - # Allow from 127.0.0.0/8 + # 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 diff --git a/_example/etc/handler-apache2.4.conf b/_example/etc/handler-apache2.4.conf index 7ce69706a..34b03246e 100644 --- a/_example/etc/handler-apache2.4.conf +++ b/_example/etc/handler-apache2.4.conf @@ -21,13 +21,13 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503 # needed): choose your URL to avoid restarting Apache when # configuration change - Require ip 127 + Require ip 127 ::1 PerlHeaderParserHandler Lemonldap::NG::Handler->reload # Uncomment this to activate status module # - # Require ip 127 + # Require ip 127 ::1 # SetHandler perl-script # PerlResponseHandler Lemonldap::NG::Handler->status # # You may have to uncomment the next directive to skip diff --git a/_example/etc/handler-apache2.conf b/_example/etc/handler-apache2.conf index 91d957429..737028bb6 100644 --- a/_example/etc/handler-apache2.conf +++ b/_example/etc/handler-apache2.conf @@ -23,7 +23,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503 Order deny,allow Deny from all - Allow from 127.0.0.0/8 + Allow from 127.0.0.0/8 ::1 PerlHeaderParserHandler Lemonldap::NG::Handler->reload @@ -31,7 +31,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503 # # Order deny,allow # Deny from all - # Allow from 127.0.0.0/8 + # Allow from 127.0.0.0/8 ::1 # SetHandler perl-script # PerlResponseHandler Lemonldap::NG::Handler->status # # You may have to uncomment the next directive to skip diff --git a/_example/etc/handler-nginx.conf b/_example/etc/handler-nginx.conf index c50ad2f84..21f5acb8d 100644 --- a/_example/etc/handler-nginx.conf +++ b/_example/etc/handler-nginx.conf @@ -18,6 +18,7 @@ server { # configuration change location /reload { allow 127.0.0.0/8; + allow ::1; deny all; perl Lemonldap::NG::Handler::reload; } @@ -25,6 +26,7 @@ server { # Uncomment this to activate status module #location /status { # allow 127.0.0.0/8; + # allow ::1; # deny all; # perl Lemonldap::NG::Handler::status; #}