1 #######################################################################
3 ## For more examples check:
5 ## http://www.lighttpd.net/documentation/configuration.html#conditional-configuration
7 $HTTP["host"] == "download.example.com" {
8 var.server_name = "download.example.com"
10 server.name = server_name
11 ## example how to include another config:
12 ## use trigger before download
14 # include "conf.d/trigger_b4_dl.conf"
16 server.document-root = vhosts_dir + "/example.com/download/htdocs"
18 ## use a seperate access log file
19 ## At the moment you cant have different error log files.
21 accesslog.filename = log_root + "/" + server_name + "/access.log"
24 $SERVER["socket"] == "127.0.0.1:443" {
25 server.name = "localhost"
26 ssl.pemfile = "/etc/ssl/private/lighttpd-localhost.pem"
29 server.document-root = vhosts_dir + "/ssl-localhost/pages/"
33 #######################################################################