1####################################################################### 2## 3## For more examples check: 4## 5## http://www.lighttpd.net/documentation/configuration.html#conditional-configuration 6## 7$HTTP["host"] == "download.example.com" { 8 var.server_name = "download.example.com" 9 10 server.name = server_name 11 ## 12 ## use trigger before download 13 ## 14 include "conf.d/trigger_b4_dl.conf" 15 16 server.document-root = vhosts_dir + "/example.com/download/htdocs" 17 ## 18 ## use a seperate access log file 19 ## At the moment you cant have different error log files. 20 ## 21 accesslog.filename = log_root + "/" + server_name "/access.log" 22} 23 24$SERVER["socket"] == "127.0.0.1:443" { 25 server.name = "localhost" 26 ssl.pemfile = "/etc/ssl/private/lighttpd-localhost.pem" 27 ssl.engine = "enable" 28 29 server.document-root = vhosts_dir + "/ssl-localhost/pages/" 30} 31 32## 33####################################################################### 34