比如要匹配
a.example.com
www.example.com
在lighttpd中
$HTTP[”host”] =~ “(^|\.)example\.com” {
…
}
lighttpd域名匹配配置
本文介绍如何在lighttpd服务器中配置正则表达式来匹配不同子域, 如'a.example.com' 和 'www.example.com'。通过设置$HTTP[host]=~(^|.)example.com实现对example.com及其子域的有效识别。
比如要匹配
a.example.com
www.example.com
在lighttpd中
$HTTP[”host”] =~ “(^|\.)example\.com” {
…
}
8186

被折叠的 条评论
为什么被折叠?