summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/nagios-core/files/lighttpd_nagios.conf')
-rw-r--r--net-analyzer/nagios-core/files/lighttpd_nagios.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-analyzer/nagios-core/files/lighttpd_nagios.conf b/net-analyzer/nagios-core/files/lighttpd_nagios.conf
new file mode 100644
index 0000000..d512255
--- /dev/null
+++ b/net-analyzer/nagios-core/files/lighttpd_nagios.conf
@@ -0,0 +1,23 @@
+server.modules += ("mod_cgi")
+server.modules += ("mod_auth")
+
+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/nagios/sbin",
+ "/nagios" => "/usr/nagios/share"
+)