lighttpd資料一覧

更新日:2007/9/19

対応ソフトウェア:lighttpd 1.4.18

バーチャルホスト毎に以下のように設定する。

$HTTP["host"] == "<アクセス先ホスト1>" {
  :
}

$HTTP["host"] == "<アクセス先ホスト2>" {
  :
}

例)

$HTTP["host"] == "aaa.bar.com" {
  server.document-root = "/public/aaa"
  server.errorlog      = "/var/log/errlog_aaa.log"
  dir-listing.activate = "enable"
}

$HTTP["host"] == "bbb.bar.com" {
  server.document-root = "/public/bbb"
  server.errorlog      = "/var/log/errlog_bbb.log"
  ssi.extension        = ( ".shtml" )
}

関連情報(Google検索)