lighttpd 1.4.x
https://www.lighttpd.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
979 B
33 lines
979 B
####################################################################### |
|
## |
|
## 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 |
|
## example how to include another config: |
|
## 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/" |
|
} |
|
|
|
## |
|
#######################################################################
|
|
|