Allowing multiple IP ranges access to a virtual host in lighttpd with remoteip
- by weeheavy
Hi,
Say I'd like to restrict access to a virtual host to multiple IP ranges. How to do that? The Perl regex syntax style doesn't work, and i don't want loose restrictions like 10.*
The code below works for a single range:
$HTTP["host"] == "adm.example.org" {
$HTTP["remoteip"] != "10.0.0.0/28" {
url.access-deny = ( "" )
}
}
Thanks in advance.