fastcgi-responder.conf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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_auth",
  14. "mod_authn_file",
  15. "mod_fastcgi",
  16. "mod_accesslog",
  17. )
  18. accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
  19. $HTTP["host"] == "auth.example.org" {
  20. server.name = "auth.example.org"
  21. $HTTP["url"] =~ "\.php$" {
  22. auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
  23. auth.backend = "htpasswd"
  24. auth.require = (
  25. "" => (
  26. "method" => "basic",
  27. "realm" => "download archiv",
  28. "require" => "valid-user",
  29. ),
  30. )
  31. }
  32. fastcgi.debug = 0
  33. fastcgi.server = (
  34. "/" => (
  35. "grisu-auth" => (
  36. "host" => "127.0.0.1",
  37. "port" => env.EPHEMERAL_PORT,
  38. "bin-path" => env.SRCDIR + "/fcgi-responder",
  39. "bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
  40. "check-local" => "disable",
  41. "max-procs" => 1,
  42. "mode" => "authorizer",
  43. ),
  44. "grisu-resp" => (
  45. "host" => "127.0.0.1",
  46. "port" => env.EPHEMERAL_PORT,
  47. "bin-path" => env.SRCDIR + "/fcgi-responder",
  48. "bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
  49. "check-local" => "disable",
  50. "max-procs" => 1,
  51. ),
  52. ),
  53. )
  54. }
  55. else {
  56. fastcgi.debug = 0
  57. fastcgi.server = (
  58. ".php" => ( (
  59. "host" => "127.0.0.1",
  60. "port" => env.EPHEMERAL_PORT,
  61. "bin-path" => env.SRCDIR + "/fcgi-responder",
  62. "bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
  63. "check-local" => "disable",
  64. "max-procs" => 1,
  65. ) ),
  66. "/prefix.fcgi" => ( (
  67. "host" => "127.0.0.1",
  68. "port" => env.EPHEMERAL_PORT,
  69. "bin-path" => env.SRCDIR + "/fcgi-responder",
  70. "max-procs" => 1,
  71. ) ),
  72. ".fcgi" => (
  73. "grisu" => (
  74. "host" => "127.0.0.1",
  75. "port" => env.EPHEMERAL_PORT,
  76. "bin-path" => env.SRCDIR + "/fcgi-responder",
  77. "bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
  78. "check-local" => "disable",
  79. "max-procs" => 1,
  80. ),
  81. ),
  82. )
  83. }
  84. $HTTP["host"] == "wsgi.example.org" {
  85. fastcgi.server = (
  86. "/" => ( (
  87. "host" => "127.0.0.1",
  88. "port" => env.EPHEMERAL_PORT,
  89. "bin-path" => env.SRCDIR + "/fcgi-responder",
  90. "bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
  91. "check-local" => "disable",
  92. "fix-root-scriptname" => "enable",
  93. "max-procs" => 1,
  94. ) ),
  95. )
  96. }