Annotation of embedaddon/lighttpd/doc/config/vhosts.d/vhosts.template, revision 1.1.1.2

1.1       misho       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
1.1.1.2 ! misho      11:   ## example how to include another config:
1.1       misho      12:   ## use trigger before download
                     13:   ## 
1.1.1.2 ! misho      14:   # include "conf.d/trigger_b4_dl.conf"
1.1       misho      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:   ##
1.1.1.2 ! misho      21:   accesslog.filename          = log_root + "/" + server_name + "/access.log"
1.1       misho      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: #######################################################################

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>