2013-08-18 120 views
0

我在apache 2.2中得到了這個虛擬主機目錄的403個禁止的錯誤。任何人都可以幫忙嗎?這個apache虛擬主機指令有什麼問題?

<VirtualHost *:80> 
    ServerName www.xyz.com 
    ServerAlias xyz.com 
    DocumentRoot "/home/bruce/projects/links/www" 

    <Directory /> 
    AllowOverride None 
    Options Indexes FollowSymLinks 
    Order allow,deny 
    Allow from all 
    </Directory> 

    DirectoryIndex index.html index.htm index.jsp index.php 
</VirtualHost> 

謝謝!在日誌

編輯錯誤是

(13)Permission denied: access to/denied 
+0

您的虛擬主機與您的文件夾錯誤沒有問題。您需要將755設置爲文件夾鏈接和www。 – Prix

回答

0

,如果我沒看錯你指定的根目錄下的文件,你在< Directory> 系統應該是:

<VirtualHost *:80> 
ServerName www.xyz.com 
ServerAlias xyz.com 
DocumentRoot "/home/bruce/projects/links/www" 

<Directory /home/bruce/projects/links/www> 
... 
+0

感謝您的回答。結束了比這更簡單的事情。對目錄的實際權限.. Gah! – Bruce

0

爾加。結果是我確實被禁止訪問該頁面。我正在使用新的虛擬服務器提供商,並且他們已將我的/家庭帳戶設置爲只能由我讀取。結果,運行apache的用戶無法查看這些文件。我已將主目錄上的權限更改爲更寬鬆,現在一切正常。