Lighttpd虚拟主机配置
时间:2014-05-26 00:03 来源:linux.it.net.cn 作者:IT网
为了在Lighttpd增加一个额外的站点lighttpd.example.com,我们只需在lighttpd.conf配置文件中加入如下代码:
$HTTP["host"] == "lighttpd.example.com" {
server.document-root = "/home/bizhat/lighttpd.example.com/"
server.errorlog = "/var/log/lighttpd/lighttpd_error.log"
accesslog.filename = "/var/log/lighttpd/lighttpd_access.log"
server.error-handler-404 = "/img/nohotlink.gif"
}
(责任编辑:IT)
为了在Lighttpd增加一个额外的站点lighttpd.example.com,我们只需在lighttpd.conf配置文件中加入如下代码: $HTTP["host"] == "lighttpd.example.com" { server.document-root = "/home/bizhat/lighttpd.example.com/" server.errorlog = "/var/log/lighttpd/lighttpd_error.log" accesslog.filename = "/var/log/lighttpd/lighttpd_access.log" server.error-handler-404 = "/img/nohotlink.gif" } (责任编辑:IT) |