2012-05-15 40 views
1
禁止

能否請你幫我,訪問在Magento

我試圖從媒體/客戶/文件夾訪問直接圖像文件,但它說,像

Access forbidden! 

你不有權訪問請求的對象。它是讀取保護的或服務器不可讀的。

如果您認爲這是服務器錯誤,請與網站管理員聯繫。

錯誤403

本地主機 05/15/12十四時13分26秒 阿帕奇/ 2.2.14(Win32的)DAV/2的mod_ssl/2.2.14的OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

請任何幫助!我知道,它不是從XAMPP的錯誤,從Magento的它的東西,請大家幫我出

許多在此先感謝

回答

2

我冒昧地懷疑,這消息是由Magento的產生。

它究竟看起來像默認XAMPP的xampp/apache/error/HTTP_FORBIDDEN.html.var

Content-language: en 
Content-type: text/html; charset=ISO-8859-1 
Body:----------en-- 
<!--#set var="TITLE" value="Access forbidden!" 
--><!--#include virtual="include/top.html" --> 

    <!--#if expr="$REDIRECT_URL = /\/$/" --> 

    You don't have permission to access the requested directory. 
    There is either no index document or the directory is read-protected. 

    <!--#else --> 

    You don't have permission to access the requested object. 
    It is either read-protected or not readable by the server. 

    <!--#endif --> 

<!--#include virtual="include/bottom.html" --> 
----------en-- 

不幸的是,你不寫你的代碼是如何試圖訪問圖像什麼。

請貼出相應的代碼部分。

請在Apache error_log中找到正確的403消息併發布。

0

它看起來像安裝Magento的目錄沒有訪問Magento目錄的權限。這是一個Apache錯誤,不是Magento的錯誤。

1

您應該檢查媒體文件夾中的權限設置。