apache virtual host在/home下出錯 - Linux

Table of Contents

小弟在設apache vhost時,這樣寫啟動apache時會出現警告

DocumentRoot "/home/user/"

Warning: DocumentRoot [/home/user/] does not exist

但這樣寫就不會

DocumentRoot "/var/www/test/"

上網查了一下,好像是apache對/home目錄沒有存取權限

但我/home都設755了
drwxr-xr-x. 5 root root 4096 2012-01-03 17:36 /home/

請問要怎麼解決呢?

--

All Comments

Oliver avatarOliver2012-01-06
SELinux?
按到噓字,歹勢原po
Valerie avatarValerie2012-01-08
應該是你沒有 user 這個使用者吧 /home/ 底下真有 user
這個資料夾?
ls /home; 把結果貼出來看看
Susan avatarSusan2012-01-11
確定有/home/user/這個目錄 但是錯誤訊息就是那樣 >"<
Candice avatarCandice2012-01-11
ls -l /home/user
Gilbert avatarGilbert2012-01-14
http://ppt.cc/Rwon SELinux的放行,有沒有可能是
Dinah avatarDinah2012-01-18
個人網頁沒有開啟功能
Candice avatarCandice2012-01-20
那/home/user/的權限呢?
Callum avatarCallum2012-01-24
是 SELinux的放行,謝謝tj大大,/home/user/ 一樣755