lighttpd.conf 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. server.port = 3004
  2. # server.errorlog = "/dev/stdout"
  3. # accesslog.filename = "/dev/stdout"
  4. # debug.log-request-header-on-error = "enable"
  5. # debug.log-request-handling = "enable"
  6. # debug.log-request-header = "enable"
  7. server.modules = (
  8. "mod_access",
  9. "mod_accesslog",
  10. "mod_webdav",
  11. "mod_auth",
  12. "mod_authn_file",
  13. "mod_status",
  14. "mod_alias",
  15. "mod_setenv",
  16. "mod_extforward",
  17. "mod_proxy"
  18. )
  19. include "/etc/lighttpd/mime-types.conf"
  20. server.username = "webdav"
  21. server.groupname = "webdav"
  22. server.document-root = "/webdav"
  23. server.pid-file = "/run/lighttpd.pid"
  24. server.follow-symlink = "enable"
  25. url.access-deny = ("~", ".inc")
  26. var.logdir = "/var/log/lighttpd"
  27. accesslog.filename = var.logdir + "/access.log"
  28. server.errorlog = var.logdir + "/error.log"
  29. # automatically render index.html if it exists
  30. index-file.names = ( "index.html" )
  31. url.rewrite-if-not-file = (
  32. "^/(.*)/$ " => "$1/index.html"
  33. )
  34. # Automatische Zipfile-Erzeugung für jpgs in Galerien
  35. $HTTP["url"] =~ "^/(start_zip|status|download)" {
  36. proxy.server = ( "" => ( ( "host" => "flask_zipfile_creator", "port" => 5000 ) ) )
  37. }
  38. include "/config/webdav.conf"
  39. # compress.cache-dir = "/var/lib/lighttpd/cache/compress"
  40. # compress.filetype = (
  41. # "text/css",
  42. # "text/javascript",
  43. # "text/plain",
  44. # "text/xml"
  45. # )