允许多个IP范围通过remoteip访问lighttpd中的虚拟主机

假设我想限制对多个 IP范围的虚拟主机的访问。 怎么做? Perl正则expression式的语法风格不起作用,我不想松散的限制,如* 10。**

下面的代码适用于单个范围:

$HTTP["host"] == "adm.example.org" { $HTTP["remoteip"] != "10.0.0.0/28" { url.access-deny = ( "" ) } } 

提前致谢。

 $HTTP["remoteip"] !~ "192.168.2.*|192.168.0.*|10.8.9.*" { url.access-deny = ( "" ) } or to include for the 192.168.0.0 network only this range: 192.168.0.180 - 192.168.0.188 $HTTP["remoteip"] !~ "192.168.2.*|192.168.0.18[0-8]|10.8.9.*" { url.access-deny = ( "" ) } 
 $HTTP["host"] == "adm.example.org" { $HTTP["remoteip"] != "1.2.3.4|5.6.7.8|9.10.11.12" { url.access-deny = ( "" ) } } 

等等