一起牛网_苹果安卓手游族群聚集地!

微信:96kaifa
关注我们
所在位置:首页 > 服务器 > Lighttpd虚拟主机配置

Lighttpd虚拟主机配置

发布时间:2021-06-25 10:08:05来源:一起牛手游网作者:一起牛手游网

为了在Lighttpd增加一个额外的站点lighttpd.example.com,我们只需在lighttpd.conf配置文件中加入如下代码:

  1. $HTTP["host"] == "lighttpd.example.com" {

  2.   server.document-root = "/home/bizhat/lighttpd.example.com/"

  3.   server.errorlog = "/var/log/lighttpd/lighttpd_error.log"

  4.   accesslog.filename = "/var/log/lighttpd/lighttpd_access.log"

  5.   server.error-handler-404   = "/img/nohotlink.gif"

  6. }


我要评价

  • 热门资讯
  • 最新资讯
  • 手游排行榜
  • 手游新品榜