Apache的403错误,(13)权限被拒绝:接入/拒绝,Fedora的16
问题描述:
我刚刚建立了阿帕奇在我的Fedora 16,我不能让我的虚拟主机的工作!
I've just set up apache on my Fedora 16. And i can't get my vhosts working!
虽然本地主机/ 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>
一切都很好的权限过:
Everything is fine with permissions too:
ls -l
drwxr-xr-x. 32 renat renat 4096 янв. 7 16:12 www
和我已经得到403错误时尝试访问fabbro.fm
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安全设置的目录。
所有我做的是在路径该命令适用于该目录文档根:
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