重装系统后,下载了个WampServer2.1e-x32.exe安装,但是安装后删除了默认index.php
最后找的方法,记录下来……
找到文件:
wampserver安装目录\bin\apache\Apache2.2.17\conf\extra\httpd-autoindex.conf
修改:
Alias /icons/ “C:/Dev/Projets/WampServer2-
64b/install_files_wampserver2/bin/apache/Apache2.2.17/icons/”
<Directory “C:/Dev/Projets/WampServer2-
64b/install_files_wampserver2/bin/apache/Apache2.2.17/icons”>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
为:
Alias /icons/ “icons/”
<Directory “icons”>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
保存,重启搞定!
当然,我是用的相对路径,你也可以改成绝对路径!
转载请注明:cooljun小窝 » wampserver 图标不显示的解决办法