summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2007-09-28 17:54:53 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2007-09-28 17:54:53 +0000
commit44ee7056c75a040482959de38922524fe62dbded (patch)
tree32548e833f0ef3de051120843abe46a3289781af /net-analyzer/nagios-core/files/lighttpd_nagios.conf
parentAlready merged to the tree (diff)
downloaddertobi123-44ee7056c75a040482959de38922524fe62dbded.tar.gz
dertobi123-44ee7056c75a040482959de38922524fe62dbded.tar.bz2
dertobi123-44ee7056c75a040482959de38922524fe62dbded.zip
Import Nagios 3 (Beta 4), support lighttpd
svn path=/; revision=12
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"
+)