proxy.conf 865 B

123456789101112131415161718192021222324252627282930
  1. server.systemd-socket-activation = "enable"
  2. # optional bind spec override, e.g. for platforms without socket activation
  3. include env.SRCDIR + "/tmp/bind*.conf"
  4. server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
  5. server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
  6. server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
  7. server.name = "www.example.org"
  8. server.tag = "Proxy"
  9. server.compat-module-load = "disable"
  10. server.modules = (
  11. "mod_rewrite",
  12. "mod_proxy",
  13. "mod_accesslog",
  14. )
  15. accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
  16. proxy.debug = 1
  17. proxy.server = ( "" => (
  18. "grisu" => (
  19. "host" => "127.0.0.1",
  20. "port" => env.EPHEMERAL_PORT,
  21. ),
  22. ))
  23. url.rewrite = (
  24. "^/rewrite/all(/.*)$" => "/cgi.pl?$1",
  25. )