vhosts.template 997 B

1234567891011121314151617181920212223242526
  1. #######################################################################
  2. ##
  3. ## For more examples check:
  4. ##
  5. ## https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration
  6. ##
  7. $HTTP["host"] == "download.example.com" {
  8. var.server_name = "download.example.com"
  9. server.name = server_name
  10. server.document-root = vhosts_dir + "/web/" + server_name + "/htdocs"
  11. ## TLS certificate per vhost
  12. ##
  13. #ssl.pemfile = vhosts_dir + "/web/" + server_name + "/certs/fullchain.pem"
  14. #ssl.privkey = vhosts_dir + "/web/" + server_name + "/certs/privkey.pem"
  15. #ssl.stapling-file = vhosts_dir + "/web/" + server_name + "/certs/staple.der"
  16. ## use separate access/error log files
  17. ## (since lighttpd 1.4.56, server.errorlog can also be used in virtual hosts)
  18. ##
  19. #accesslog.filename = log_root + "/" + server_name + "/access.log"
  20. #server.errorlog = log_root + "/" + server_name + "/error.log"
  21. }
  22. ##
  23. #######################################################################