apache 403 Forbidden error
时间:2016-07-14 14:30 来源:linux.it.net.cn 作者:IT
Forbidden
You don’t have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
解决办法:
方法一:
vim /etc/selinux/config
打开selinux的配置文件,我们可以看selinux是默认开启的:
-
SELINUX=enforcing
所以我们要修改的就是这个了,把原来的注释掉,自己写上
-
SELINUX=disabled
方法二:
在apache2.4.X
找到httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride None
### Order deny,allow
### Deny from all
Order allow,deny
Allow from all
Satisfy all
</Directory>
此方法在apache 2.4中实现
(责任编辑:IT)
Forbidden Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
解决办法: 方法一: vim /etc/selinux/config 打开selinux的配置文件,我们可以看selinux是默认开启的:
所以我们要修改的就是这个了,把原来的注释掉,自己写上
方法二: 在apache2.4.X 找到httpd.conf <Directory /> Options FollowSymLinks AllowOverride None ### Order deny,allow ### Deny from all Order allow,deny Allow from all Satisfy all </Directory> 此方法在apache 2.4中实现 (责任编辑:IT) |