summaryrefslogtreecommitdiffstats
path: root/main/nagios/lighttpd-nagios.conf
blob: cb7081d84151d24ce51c25429902d008d1bb45b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
###
# Sample nagios lighttpd config
###

server.modules += ("mod_cgi")
server.modules += ("mod_auth")
server.modules += ("mod_alias")

auth.require += ( "/nagios" =>
  (
    "method"  => "digest",
    "realm"   => "nagios",
    "require" => "valid-user"
  )
)

$HTTP["url"] =~ "^/nagios/cgi-bin/" {
  dir-listing.activate = "disable"
  cgi.assign = (
    ".pl"  => "/usr/bin/perl",
    ".cgi" => ""
  )
}

alias.url += (
  "/nagios/cgi-bin" => "/usr/lib/nagios/cgi-bin",
  "/nagios"         => "/usr/share/nagios/htdocs"
)