scgi-responder.conf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #debug.log-request-header = "enable"
  2. #debug.log-response-header = "enable"
  3. #debug.log-request-handling = "enable"
  4. server.systemd-socket-activation = "enable"
  5. # optional bind spec override, e.g. for platforms without socket activation
  6. include env.SRCDIR + "/tmp/bind*.conf"
  7. server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
  8. server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
  9. server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
  10. server.name = "www.example.org"
  11. server.compat-module-load = "disable"
  12. server.modules = (
  13. "mod_scgi",
  14. "mod_accesslog",
  15. )
  16. accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
  17. scgi.debug = 0
  18. scgi.server = (
  19. ".scgi" => (
  20. "grisu" => (
  21. "host" => "127.0.0.1",
  22. "port" => env.EPHEMERAL_PORT,
  23. "bin-path" => env.SRCDIR + "/scgi-responder",
  24. "check-local" => "disable",
  25. "max-procs" => 1,
  26. "min-procs" => 1,
  27. ),
  28. ),
  29. )
  30. $HTTP["host"] == "wsgi.example.org" {
  31. scgi.server = (
  32. "/" => ( (
  33. "host" => "127.0.0.1",
  34. "port" => env.EPHEMERAL_PORT,
  35. "fix-root-scriptname" => "enable",
  36. "check-local" => "disable",
  37. "bin-path" => env.SRCDIR + "/scgi-responder",
  38. "max-procs" => 1,
  39. ) ),
  40. )
  41. }