[icinga-checkins] icinga.org: icinga-core/dev/core: install: add lighttp config samples to contrib/lighttp refs #2253

git at icinga.org git at icinga.org
Mon Mar 11 23:31:47 CET 2013


Module: icinga-core
Branch: dev/core
Commit: bae9541f87797baf9937c12518af77413d214fb8
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=bae9541f87797baf9937c12518af77413d214fb8

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Mon Mar 11 21:28:10 2013 +0100

install: add lighttp config samples to contrib/lighttp refs #2253

---

 Changelog                            |    1 +
 contrib/lighttp/README.lighttp       |    5 +++++
 contrib/lighttp/lighttp.conf-include |    1 +
 contrib/lighttp/lighttp_icinga.conf  |   27 +++++++++++++++++++++++++++
 4 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/Changelog b/Changelog
index b82f215..bfdff99 100644
--- a/Changelog
+++ b/Changelog
@@ -40,6 +40,7 @@ ENHANCEMENTS
 * idoutils: add experimental socket queue proxy; opt-in via config option #3533 - GB
 
 * install: set --enable-idoutils/event-broker to true as default configure flags #3813 - MF
+* install: add lighttp config samples to contrib/lighttp #2253 - RB
 
 FIXES
 * core: fix faulty macro cleaning, replacing spaces with pluses where they shouldn't be cleaned #3397 - MF
diff --git a/contrib/lighttp/README.lighttp b/contrib/lighttp/README.lighttp
new file mode 100644
index 0000000..4759b2b
--- /dev/null
+++ b/contrib/lighttp/README.lighttp
@@ -0,0 +1,5 @@
+Use lighttp_icinga.conf and put it into /etc/lighttp/
+Add the include directive to /etc/lighttp/lighttp.conf
+
+The related issue is https://dev.icinga.org/issues/2253
+if you want to contribute some more content.
diff --git a/contrib/lighttp/lighttp.conf-include b/contrib/lighttp/lighttp.conf-include
new file mode 100644
index 0000000..259ae25
--- /dev/null
+++ b/contrib/lighttp/lighttp.conf-include
@@ -0,0 +1 @@
+include "/etc/lighttpd/lighttpd_icinga.conf"
diff --git a/contrib/lighttp/lighttp_icinga.conf b/contrib/lighttp/lighttp_icinga.conf
new file mode 100644
index 0000000..1007797
--- /dev/null
+++ b/contrib/lighttp/lighttp_icinga.conf
@@ -0,0 +1,27 @@
+server.modules += ("mod_cgi")
+server.modules += ("mod_auth")
+server.modules += ("mod_alias")
+server.modules += ("mod_setenv")
+
+$HTTP["url"] =~ "^/icinga/cgi-bin/" {
+        dir-listing.activate = "disable" 
+        cgi.assign = ( ".cgi" => "" )
+}
+
+$HTTP["url"] =~ "^/icinga/" {
+        auth.backend = "htpasswd" 
+        auth.backend.htpasswd.userfile = "/usr/local/icinga/etc/htpasswd.users" 
+        auth.require += ( "" =>
+                (
+                        "method"  => "basic",
+                        "realm"   => "Icinga Access",
+                        "require" => "valid-user" 
+                )
+        )
+        setenv.add-environment = ( "REMOTE_USER" => "user" )
+}
+
+alias.url += (
+        "/icinga/cgi-bin" => "/usr/local/icinga/sbin",
+        "/icinga"         => "/usr/local/icinga/share" 
+)





More information about the icinga-checkins mailing list