【发布时间】:2011-04-15 08:51:02
【问题描述】:
我想将特定域从 http 重定向到 lighttpd 中相应的 https 地址。我尝试了 lighttpd 页面上的教程,但它不是为特定域编写的。这就是我想要的:
$HTTP["host"] =~ "secure.example.com" {
server.document-root = "/var/www/secure.example.com"
// IF NOT SSL, REDIRECT TO SSL
}
感谢您的帮助。
【问题讨论】:
标签: regex ssl redirect lighttpd