The Poor Man's (or Woman's) Intrusion Detection System
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.
 
 
 
 

29 lines
881 B

  1. # This is based on a Debian 10 install of LigHTTPd install.
  2. # Include the 10-fastcgi.conf or:
  3. # server.modules += ( "mod_fastcgi" )
  4. #fastcgi.debug = 1
  5. fastcgi.server = (
  6. "/webmonitor" =>
  7. ( "trafficctrl" =>
  8. ( "socket" => "/run/poorman-ids/trafficctrl.fcgi",
  9. "check-local" => "disable",
  10. # "fix-root-scriptname" => "enable",
  11. #"docroot" => "/" # remote server may use
  12. # its own docroot
  13. )
  14. )
  15. )
  16. # Password restriction could be done something like this:
  17. auth.backend = "htpasswd"
  18. auth.backend.htpasswd.userfile = "/etc/lighttpd/lighttpd.users"
  19. auth.require += ( "/webmonitor" => (
  20. "method" => "basic",
  21. "realm" => "Web Monitor",
  22. #"require" => "user=root"
  23. ), )
  24. # Check LigHTTPd docs for your version.