Rocky Space
2010年7月17日 星期六
Apache 403 解決方法 (問題源於SELinux)
DocumentRoot 如果設在其他目錄如/home/myapache(不是default 的 /var/www/html)
瀏覽器會出現Forbidden:
Forbidden
You don't have permission to access /home/myapache on this server
解決方法 :
執行chcon 來解決apache和SELinux之間的沖突
chcon -R -t httpd_user_content_t /home/myapache
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言