[core] $HTTP["remoteip"] must handle IPv6 w/o []
[lighttpd.git] / doc / config / vhosts.d / vhosts.template
blobefd441feae91d9b0a0fd39fefd8f8d43186b3454
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"
10   server.name = server_name
11   ## example how to include another config:
12   ## use trigger before download
13   ## 
14   # include "conf.d/trigger_b4_dl.conf"
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"
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"
29   server.document-root = vhosts_dir + "/ssl-localhost/pages/"
33 #######################################################################