Apache403禁止的错误应该可以工作,但不能

Apache403禁止的错误应该可以工作,但不能,apache,Apache,这是我第一次使用apache服务器,我试图找到答案,但最终失败了,有人能帮我解决这个问题吗?以下是可能受到影响的信息 键入http://[hostname]/index.php时出现错误消息 Forbidden You don't have permission to access /index.php on this server. Apache/2.2.15 (Red Hat) Server at [hostname] Port 80 操作系统信息: $ cat /etc/redhat

这是我第一次使用apache服务器,我试图找到答案,但最终失败了,有人能帮我解决这个问题吗?以下是可能受到影响的信息

键入http://[hostname]/index.php时出现错误消息

Forbidden

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

Apache/2.2.15 (Red Hat) Server at [hostname] Port 80
操作系统信息:

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
httpd.conf信息 $cat/etc/httpd/conf/httpd.conf(http.conf的一部分)

selinux的配置:

sudo cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.

#SELINUX=enforcing
SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

“ls-l/var/www”怎么样?$ls-l/var/www总共24个drwxrwsr-x。2根www 4096 Aug 2 08:02 cgi bin drwxrwsr-x。3根www 4096 Dec 21 00:57错误drwxrwsr--。5 root www 4096 Dec 24 12:16 html drwxrwsr-x。3根目录www 4096 Dec 21 00:57图标drwxrwsr-x。14根目录www 4096 Dec 21 00:57手动drwxrwsr-x。2 root www 4096 Dec 23 03:31用法抱歉,我不太清楚如何设置注释的格式。我看不到文档根?尝试添加DocumentRoot/var/www或/var/www/html以及该目录的一个块。它工作得很好,我真的很无聊。
$ cat .htaccess
DirectoryIndex index.php
sudo cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.

#SELINUX=enforcing
SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted