diff options
Diffstat (limited to 'main/nagios/lighttpd-nagios.conf')
-rw-r--r-- | main/nagios/lighttpd-nagios.conf | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/main/nagios/lighttpd-nagios.conf b/main/nagios/lighttpd-nagios.conf new file mode 100644 index 000000000..cb7081d84 --- /dev/null +++ b/main/nagios/lighttpd-nagios.conf @@ -0,0 +1,29 @@ +### +# Sample nagios lighttpd config +### + +server.modules += ("mod_cgi") +server.modules += ("mod_auth") +server.modules += ("mod_alias") + +auth.require += ( "/nagios" => + ( + "method" => "digest", + "realm" => "nagios", + "require" => "valid-user" + ) +) + +$HTTP["url"] =~ "^/nagios/cgi-bin/" { + dir-listing.activate = "disable" + cgi.assign = ( + ".pl" => "/usr/bin/perl", + ".cgi" => "" + ) +} + +alias.url += ( + "/nagios/cgi-bin" => "/usr/lib/nagios/cgi-bin", + "/nagios" => "/usr/share/nagios/htdocs" +) + |