Репозитории ALT
S: | 3.0.6-alt16 |
5.1: | 3.0.6-alt1 |
4.1: | 3.0.3-alt1.M41.1 |
4.0: | 2.7-alt1 |
3.0: | 2.0-alt0.b3.1 |
Группа :: Мониторинг
Пакет: nagios
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
###
# local changes for Nagios 3.0.1
server.modules += (
"mod_alias",
"mod_cgi",
"mod_auth"
)
alias.url = ( "/nagios/cgi-bin" => "/usr/lib/nagios/cgi" )
alias.url += ( "/nagios" => "/usr/share/nagios/html" )
$HTTP["url"] =~ "^/nagios/cgi-bin" {
cgi.assign = ( ".cgi" => "" )
}
## debugging
# 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
auth.debug = 0
## type of backend
# plain, htpasswd, ldap or htdigest
auth.backend = "htpasswd"
## for htpasswd
auth.backend.htpasswd.userfile = "/etc/nagios/nagios.web-users"
## restrictions
# set restrictions:
#
# ( <left-part-of-the-url> =>
# ( "method" => "digest"/"basic",
# "realm" => <realm>,
# "require" => "user=<username>" )
# )
#
# <realm> is a string to display in the dialog
# presented to the user and is also used for the
# digest-algorithm and has to match the realm in the
# htdigest file (if used)
#
# Or, using regular expressions:
$HTTP["url"] =~ "^/nagios.*" {
auth.require = (
"" => (
# method must be either basic or digest
"method" => "basic",
"realm" => "Nagios Web-interface",
"require" => "valid-user"
)
)
}