Bug#512583: /doc/ and /images/ not accessible via IPv6 address

2009-01-22 Thread Gabriel Corona
In fact it should be something like :

HTTP[remoteip] =~ ^127\.0\.0\.1$|^::(1|127\.0\.0\.1)$ {
...
}

Otherwise some IPs (like 2001::127:0:0:1:0) will match..

Gabriel




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#512583: /doc/ and /images/ not accessible via IPv6 address

2009-01-21 Thread Gabriel Corona

Package: lighttpd
Version: 1.4.19-5

In the lighhtpd.conf, the following lines :
$HTTP[remoteip] =~ 127.0.0.1 {
...
}
provide /doc/ and /images/ when accessing the server via 127.0.0.1
even if IPv6 is enabled.

Though, when accessing http://localhost/ the IPv6 address for localhost 
(::1) can be used : In this case the the regexp won't match.


Should'nt there be (for example) :
HTTP[remoteip] =~ 127.0.0.1$|^::1$ {
...
}
?

Gabriel



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org