wamp目录索引图片不显示

在wampserver安装目录下  \bin\apache\Apache2.2.21\conf\extra\httpd-autoindex.conf

Alias /icons/ "c:/Apache24/icons/"

<Directory "c:/Apache24/icons">
    Options Indexes MultiViews
    AllowOverride None
    Require all granted

将上面的路径该为自己当前安装的路径即可(我是在D盘)

Alias /icons/ "d:/wamp/bin/apache/apache2.4.9/icons/"

<Directory "d:/wamp/bin/apache/apache2.4.9/icons/">
    Options Indexes MultiViews
    AllowOverride None
    Require all granted

重启apache即可

posted @ 2015-05-15 20:52  壁虎漫步.  阅读(372)  评论(0编辑  收藏  举报