禁止IP地址直接访问Lighttpd服务器

lighttpd设置虚拟主机、虚拟目录IP访问限制
虚拟主机:
$HTTP[“host”] == “admin.test.cn” {
server.document-root=”/home/admin/web”   <—-随便目录
$HTTP[“remoteip”] != “0.0.0.0/0” {
url.access-deny = ( “” )
}
}

Leave a Reply

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注