Commit 3aaf1c9a authored by FX Deltombe's avatar FX Deltombe
Browse files

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

parent 4b844b7e
......@@ -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;
#}
......
Supports Markdown
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