summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf van der Spek <olafvdspek@gmail.com>2010-10-23 16:09:42 +0000
committerOlaf van der Spek <olafvdspek@gmail.com>2010-10-23 16:09:42 +0000
commitf84e364b53c0b315ba141af274cb13c78d4607b6 (patch)
tree033427056241aade174eaf16ac8d86ac177e8cf1
parent8fe75c112fb693d47a48608df5cafc590cffda44 (diff)
downloadlighttpd-f84e364b53c0b315ba141af274cb13c78d4607b6.tar.gz
Fix /doc/ for IPv6 (closes: 512583)
-rw-r--r--debian/conf-available/90-debian-doc.conf4
1 files changed, 1 insertions, 3 deletions
diff --git a/debian/conf-available/90-debian-doc.conf b/debian/conf-available/90-debian-doc.conf
index 21f09ad..0eb4cc2 100644
--- a/debian/conf-available/90-debian-doc.conf
+++ b/debian/conf-available/90-debian-doc.conf
@@ -1,8 +1,6 @@
#### handle Debian Policy Manual, Section 11.5. urls
## by default allow them only from localhost
-## (This must come last due to #445459)
-## Note: =~ "127.0.0.1" works with ipv6 enabled, whereas == "127.0.0.1" doesn't
-$HTTP["remoteip"] =~ "127.0.0.1" {
+$HTTP["remoteip"] =~ "^127\.0\.0\.1$|^::1$" {
alias.url += (
"/cgi-bin/" => "/usr/lib/cgi-bin/",
"/doc/" => "/usr/share/doc/",