| 1 | # Load setenv module |
| 2 | server.modules += ( "mod_setenv" ) |
| 3 | |
| 4 | alias.url += ( |
| 5 | "/cgi-bin/icinga" => "/usr/lib/cgi-bin/icinga", |
| 6 | "/icinga/stylesheets" => "/etc/icinga/stylesheets", |
| 7 | "/icinga" => "/usr/share/icinga/htdocs", |
| 8 | ) |
| 9 | |
| 10 | $HTTP["url"] =~ "^/cgi-bin/icinga" { |
| 11 | dir-listing.activate = "disable" |
| 12 | cgi.assign = ( ".cgi" => "" ) |
| 13 | } |
| 14 | |
| 15 | $HTTP["url"] =~ "^/(cgi-bin/)?icinga/" { |
| 16 | auth.backend = "htpasswd" |
| 17 | auth.backend.htpasswd.userfile = "/etc/icinga/htpasswd.users" |
| 18 | auth.require += ( "" => |
| 19 | ( |
| 20 | "method" => "basic", |
| 21 | "realm" => "Icinga Access", |
| 22 | "require" => "user=icingaadmin" |
| 23 | ) |
| 24 | ) |
| 25 | } |
waja / gist:f5565a764f1c4ba59adb87364d3ce9c0
Last active 3 months ago
Revision 6e5a304cca9595d675f32a3afe7fbe44bc22952c