This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install: add lighttp config samples to contrib/lighttp refs #2253
- Loading branch information
Michael Friedrich
committed
Mar 11, 2013
1 parent
2c01070
commit bae9541
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include "/etc/lighttpd/lighttpd_icinga.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
) |