Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
install: add lighttp config samples to contrib/lighttp refs #2253
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Friedrich committed Mar 11, 2013
1 parent 2c01070 commit bae9541
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions 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.
1 change: 1 addition & 0 deletions contrib/lighttp/lighttp.conf-include
@@ -0,0 +1 @@
include "/etc/lighttpd/lighttpd_icinga.conf"
27 changes: 27 additions & 0 deletions 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"
)

0 comments on commit bae9541

Please sign in to comment.