The personal website of Philip Mather

RegEx bug

There's a bug in lighttpd that causes it to only parse the first 10 terms of a regexp pattern before silently failing on the remainder, this is a hack to get around the problem...

$HTTP["remoteip"] =~ "^(192\.168\.94\.)|(192\.168\.96\.)|(192\.168\.24\.)|(88\.81\.156\.)|(192\.168\.83\.)|(192\.168\.86\.)|(192\.168\.72\.)|(192\.1\.254\.228)|(192\.168\.25\.)|(62\.7\.228\.)|(192\.168\.32\.)" {
}
else $HTTP["remoteip"] =~ "^(192\.168\.2\.)|(192\.1\.254\.202)" {
}
else $HTTP["url"] =~ "^/ws/" {
   url.access-deny = ("")
}