Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information...
dnsmichi committed Mar 11, 2013
1 parent 2c01070 commit bae9541f87797baf9937c12518af77413d214fb8
Showing with 34 additions and 0 deletions.
  1. +1 −0 Changelog
  2. +5 −0 contrib/lighttp/README.lighttp
  3. +1 −0 contrib/lighttp/lighttp.conf-include
  4. +27 −0 contrib/lighttp/lighttp_icinga.conf
@@ -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
@@ -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.
@@ -0,0 +1 @@
include "/etc/lighttpd/lighttpd_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"
)

0 comments on commit bae9541

Please sign in to comment.
You can’t perform that action at this time.