summaryrefslogtreecommitdiffstats
path: root/main/nagios/lighttpd-nagios.conf
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-04 06:51:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-04 06:51:50 +0000
commit8d7190c2c9b5628b8c80d2c636cc151ecc2432f3 (patch)
tree089ccd761f4c3e497e3b3f83aad5243602d8a13c /main/nagios/lighttpd-nagios.conf
parent8136831e39f64dac7667d9318ea80ed821a12903 (diff)
downloadaports-8d7190c2c9b5628b8c80d2c636cc151ecc2432f3.tar.bz2
aports-8d7190c2c9b5628b8c80d2c636cc151ecc2432f3.tar.xz
main/nagios: moved from testing
Diffstat (limited to 'main/nagios/lighttpd-nagios.conf')
-rw-r--r--main/nagios/lighttpd-nagios.conf29
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"
+)
+