As I haven’t found any working example configuration for running icinga on a sub domain with lighttpd, I will here present my working solution.
First of all, we need to install the software itself:
$ apt-get install icinga icinga-doc
We create the file /etc/lighttpd/conf-available/50-icinga.conf
to have a configuration which is easy en- and disable:
$HTTP[“host”] =~ “icinga.example.org” {
auth.backend = “htdigest”
auth.backend.htdigest.userfile = “/etc/lighttpd/icinga.htdigest”
auth.require = ( “/” => (
“method” => “digest”,
“realm” => “icinga”,
“require” => “valid-user”
) )
server.document-root = “/usr/share/icinga/htdocs”
alias.url += (
“/cgi-bin/icinga” => “/usr/lib/cgi-bin/icinga”,
“/icinga/stylesheets” => “/etc/icinga/stylesheets/”,
“/icinga” => “/usr/share/icinga/htdocs”,
“/stylesheets” => “/etc/icinga/stylesheets/”,
)
$HTTP[“url”] =~ “^/cgi-bin/” {
dir-listing.activate = “disable”
cgi.assign = (
“.pl” => “/usr/bin/perl”,
“.cgi” => “”
)
}
}
Now … continue