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.

47 lines
1.5 KiB

  1. server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/evhost"
  2. server.pid-file = env.SRCDIR + "/tmp/lighttpd/lighttpd.pid"
  3. ## bind to port (default: 80)
  4. server.port = 2048
  5. ## bind to localhost (default: all interfaces)
  6. server.bind = "localhost"
  7. server.name = "www.example.org"
  8. server.tag = "Proxy"
  9. server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
  10. server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
  11. accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
  12. server.modules = (
  13. "mod_evhost",
  14. "mod_accesslog" )
  15. server.indexfiles = ( "index.html" )
  16. ######################## MODULE CONFIG ############################
  17. #### mod-evhost
  18. $HTTP["host"] =~ "evhost1.example.org" {
  19. evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%{3.1}/%{3.2}/%3/pages/"
  20. }
  21. else $HTTP["host"] =~ "evhost2.example.org" {
  22. evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3/pages/"
  23. }
  24. else $HTTP["host"] =~ "evhost3.example.org" {
  25. evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%{3.0}/pages/"
  26. }
  27. else $HTTP["host"] =~ "evhost4.example.org" {
  28. evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3.\1/pages/"
  29. }
  30. else $HTTP["host"] =~ "evhost5.example.org" {
  31. evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3.\1/pages/"
  32. }
  33. else $HTTP["host"] =~ "evhost.example.org" {
  34. url.access-deny = ("")
  35. }