WampServer2.2在安装目录中找到

wampbinapacheApache2.2.17confextrahttpd-autoindex.conf

文件,

打开进行修改,

Alias /icons/ “C:/Dev/Projets/WampServer264b/install_files_wampserver2/bin/apache/Apache2.2.17/icons/”

<DirectoryC:/Dev/Projets/WampServer264b/install_files_wampserver2/bin/apache/Apache2.2.17/icons”>

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

Directory>

修改为

Alias /icons/ “icons/”

<Directoryicons”>

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

Directory>

上面用的相对目录,

因为在 httpd.conf 里面设置了

ServerRootD:/wamp/bin/apache/apache2.2.17″

或者用绝对目录也行.

wampbinapacheApache2.2.17icons