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

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

alias.url += (
  "/nagios/cgi-bin" => "@CGIBINDIR@",
  "/nagios"         => "@WEBDIR@"
)
