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" }
版权声明:Lighttpd虚拟主机配置是由宝哥软件园云端程序自动收集整理而来。如果本文侵犯了你的权益,请联系本站底部QQ或者邮箱删除。