WAMP目錄的檔案圖示破圖 [WampServer 2.2E ]

問題狀況

瀏覽檔案清單時,原本顯示檔案類型的圖示破圖。
打開圖片連結,顯示訊息:
「403 Forbidden
You don't have permission to access /icons/image2.gif on this server.」

解決方式

步驟1: 打開 {wamp安裝目錄}\bin\apache\apache2.2.22\conf\extra\httpd-autoindex.conf

步驟2: 修改檔案內容 (每行最前面 # 代表該行為備註,不會被執行)
#原內容:
#Alias /icons/ "c:/Apache2/icons/"
#修改為下一行:
Alias /icons/ "/wamp/bin/apache/apache2.2.22/icons/"


#原內容:
#<Directory "c:/Apache2/icons">
#修改為下一行:
<Directory "/wamp/bin/apache/apache2.2.22/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all

步驟3:重新啟動 apache service 即可。重新瀏覽檔案清單,就不會看到破圖。
參考資料: index of broken icons (WampServer forum)

留言