summaryrefslogtreecommitdiff
path: root/doc/config/vhosts.d/vhosts.template
blob: 2c443aa58054ab23243e655f526724d7762689a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#######################################################################
##
## For more examples check:
##
## http://www.lighttpd.net/documentation/configuration.html#conditional-configuration
##
$HTTP["host"] == "download.example.com" {
  var.server_name = "download.example.com"

  server.name = server_name
  ##
  ## use trigger before download
  ## 
  include "conf.d/trigger_b4_dl.conf"

  server.document-root = vhosts_dir + "/example.com/download/htdocs"
  ##
  ## use a seperate access log file
  ## At the moment you cant have different error log files.
  ##
  accesslog.filename          = log_root + "/" + server_name "/access.log"
}

$SERVER["socket"] == "127.0.0.1:443" {
  server.name = "localhost"
  ssl.pemfile = "/etc/ssl/private/lighttpd-localhost.pem"
  ssl.engine  = "enable"

  server.document-root = vhosts_dir + "/ssl-localhost/pages/"
}

##
#######################################################################