宝哥软件园

Lighttpd虚拟主机配置

编辑:宝哥软件园 来源:互联网 时间:2020-02-18

为了在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"
}
更多资讯
游戏推荐
更多+