Add IPv6 local subnet in default handler Apache|Nginx config file

environments/ppa-mbqj77/deployments/1
François-Xavier Deltombe 11 years ago
parent 4b844b7e07
commit 3aaf1c9aa1
  1. 4
      _example/etc/handler-apache.conf
  2. 4
      _example/etc/handler-apache2.4.conf
  3. 4
      _example/etc/handler-apache2.conf
  4. 2
      _example/etc/handler-nginx.conf

@ -22,7 +22,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
<Location /reload>
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
</Location>
@ -30,7 +30,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
#<Location /status>
# 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

@ -21,13 +21,13 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
# needed): choose your URL to avoid restarting Apache when
# configuration change
<Location /reload>
Require ip 127
Require ip 127 ::1
PerlHeaderParserHandler Lemonldap::NG::Handler->reload
</Location>
# Uncomment this to activate status module
#<Location /status>
# 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

@ -23,7 +23,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
<Location /reload>
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
</Location>
@ -31,7 +31,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
#<Location /status>
# 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

@ -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;
#}

Loading…
Cancel
Save