Apache 403 错误,(13)权限被拒绝:访问/被拒绝,Fedora 16 [英] Apache 403 error, (13)Permission denied: access to / denied, Fedora 16
本文介绍了Apache 403 错误,(13)权限被拒绝:访问/被拒绝,Fedora 16的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚在我的 Fedora 16 上设置了 apache.我无法让我的虚拟主机工作!
I've just set up apache on my Fedora 16. And i can't get my vhosts working!
虽然 localhost/phpmyadmin 工作正常..
Though localhost/phpmyadmin works fine..
我在 httpd.conf 中得到了这个
I got this in my httpd.conf
<Directory /home/renat/www>
AllowOverride All
Options +Indexes +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName fabbro.fm
DocumentRoot /home/renat/www/fabbro
</VirtualHost>
权限也一切正常:
ls -l
drwxr-xr-x. 32 renat renat 4096 янв. 7 16:12 www
尝试访问 fabbro.fm 时出现 403 错误error_log 说:
And i've got 403 error when try to access fabbro.fm error_log says:
[client 127.0.0.1] (13)Permission denied: access to / denied
我该怎么办?
推荐答案
我解决了这个问题!由于 SELinux 安全设置,Apache 无法访问这些目录.我所要做的就是将此命令应用于文档根目录中的目录:
I solved this problem! Apache could not access those directories because of the SELinux security settings. All i had to do is to apply this command to the directory in the path to document root:
chcon -R -t httpd_sys_content_t
这篇关于Apache 403 错误,(13)权限被拒绝:访问/被拒绝,Fedora 16的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文