- 论坛徽章:
- 0
|
系统centos 5.1 虚拟机实验 apahce 2.2 默认配置 并添加如下内容
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/usr/local/nagios/sbin">
AuthType Basic
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios /usr/local/nagios/share
<Directory "/usr/local/nagios/share">
AuthType Basic
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
nagios下的目录 默认权限都是nagios包括 htpasswd.users这个文件
真实机系统为windows xp 可正常ping通虚拟机 访问apache网页正常
当访问http://ip/nagios 提示:
403错误 “您可能没有权限用您提供的凭据查看此目录或网页”
查看日志 如下内容提示:
[Mon Oct 26 23:01:49 2009] [notice] SIGHUP received. Attempting to restart
[Mon Oct 26 23:01:49 2009] [notice] Apache/2.2.14 (Unix) configured -- resuming normal operations
[Mon Oct 26 23:02:03 2009] [error] [client 192.168.159.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
[Mon Oct 26 23:02:27 2009] [error] [client 192.168.159.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
给htpasswd.users 的权限为 755 并把daemon这个用户加入nagios组里面,效果还是不行
清各位帮忙 谢谢
[ 本帖最后由 huachenyang 于 2009-10-27 11:16 编辑 ] |
|