【发布时间】:2012-10-09 14:19:45
【问题描述】:
我一直在尝试在 mac 上设置 nagios,它确实看起来很容易,但我被困在这一点上 - 我无法加载 localhost/nagios/ 页面。据我所知,我有正确的配置。
我已安装 PHP 并将 httpd.conf 更改为在 index.html 中包含“index.php”。我不认为还有更多,但这件小事并没有让我继续。
谁能给我一些启示并给我指路?
这是我在 apache 的 hhtpd.conf 中的 nagios 配置文件中的内容:
# Nagios的东西
ScriptAlias /nagios/cgi-bin/ "/opt/local/sbin/nagios/"
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /opt/local/etc/nagios/htpasswd.users
require valid-user
目录>
别名 /nagios "/opt/local/share/nagios"
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
目录>
# 结束 Nagios 的东西
-- apache 的 error_log 文件是这样的:
[Fri Oct 19 11:02:09 2012] [error] [client ::1] Options 指令禁止的目录索引:/opt/local/share/nagios/
【问题讨论】: