为了在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) |