日期:2014-05-16  浏览次数:21217 次

apache权限的问题
各位大哥,兄弟遇到麻烦了。是关于apache权限的。
打开http://192.168.3.119/
这个url没问题。
我安装了一个nagios,然后再访问:http://192.168.3.119/nagios
出问题了。
访问得到的信息是:
Forbidden

You don't have permission to access /nagios/ on this server.

apache的access_log中的信息如下:
192.168.3.118 - admin [03/Feb/2010:13:57:25 +0000] "GET /nagios/ HTTP/1.1" 403 288 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7"

apache的error_log中的信息如下:
[Wed Feb 03 13:57:25 2010] [error] [client 192.168.3.118] Directory index forbidden by Options directive: /usr/local/nagios/share/

网上查过了,应该是权限的问题。但是我已经改过,并且重启了。权限如下:
[root@young nagios]# pwd
/usr/local/nagios
[root@young nagios]# ll
总计 28
drwxrwxrwx 2 nagios nagios 4096 02-03 11:25 bin
drwxrwxrwx 3 nagios nagios 4096 02-03 11:35 etc
drwxrwxrwx 2 root root 4096 02-03 11:38 include
drwxrwxrwx 2 nagios nagios 4096 02-03 11:38 libexec
drwxrwxrwx 2 nagios nagios 4096 02-03 11:25 sbin
drwxrwxrwx 10 nagios nagios 4096 02-03 11:38 share
drwxrwxrwx 5 nagios nagios 4096 02-03 14:00 var

多谢了。

------解决方案--------------------
把/etc/httpd/conf.d/nagios.conf 这个文件贴出来 
这个文件里有访问控制的设置项
------解决方案--------------------
第三方读权限,
chmod 744 文件