怪怪的 Fedora Core 3 居然讀不到使用者的網頁



贊助商連結


paulod
2005-08-11, 02:42 PM
之前都是用Redhat 9.0
想說換換新的來玩玩
今天去買了Fedora Core 3 的書(懶得上網抓ISO)
用內附的光碟安裝了

奇怪的事發生了,居然讀不到使用者的網頁
http://192.168.1.90/ 正常

http://192.168.1.90/~paulod
就讀不到了,出現以下訊息
Forbidden
You don't have permission to access /~paulod on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.0.52 (Fedora) Server at 192.168.1.90 Port 80

-----------------我是分隔線------------------
使用者:paulod
家目錄:/home/paulod/
網頁的檔案放在/home/paulod/public_html/下

apache設定檔
#UserDir disable

UserDir public_html

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>


有人知道什麼問題嗎??

贊助商連結


apathy
2005-08-11, 03:41 PM
看起來好像是啟動了selinux了
如果不想去設selinux就把selinux關掉吧
設定檔在/etc/sysconfig/selinux
把SELINUX=enforcing改成SELINUX=disabled重新開機吧
如果想設selinux印象中好像是
chcon -R -t httpd_sys_content_t 目錄路徑
可以參考
http://people.redhat.com/walters/selinux-apache-en/simple-setup.html

http://fedora.redhat.com/docs/selinux-faq-fc3/

paulod
2005-08-12, 04:13 PM
感謝

問題終於解決了