lighttpd virtual hosting

From WebHostingNeeds.com
Jump to: navigation, search

To add an extra web site "img3.bizhat.com" to lighttpd server, i add following lines to lighttpd.conf

$HTTP["host"] == "img3.bizhat.com" {
  server.document-root = "/home/bizhat/img3.bizhat.com/"
  server.errorlog = "/var/log/lighttpd/img3_error.log"
  accesslog.filename = "/var/log/lighttpd/img3_access.log"
  server.error-handler-404   = "/img/nohotlink.gif"
}