你可以看下那些不显示的图标的属性
看下是不是有那个图标
Alias /icons/ "D:/WebServer/Apache/icons/"
<Directory "D:/WebServer/Apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
這一段,有沒有?
我的之前也是这种情况,后来动了动conf文件就没事了。。还自定义改了点图标
我的配置是这样的。。路径有点不同。。。你参考一下,修改完后。。。要重启一下apach
里面有一句AddIcon /icons/php.png .php是我自己做上去了。。换个php图标而已,我上次是。。。把
例如说AddIcon /icons/binary.gif .bin .exe这一句(我把所有的都去掉了)中的第一个/去掉了。。。
重启apach。。不行。。。
然后再把 / 加回去。。重启apach。。。居然可以了。。。事实上路径应该是没错的。。。可能是加载错误。。。
Alias /icons/ "C:/Program Files/Apache Software Foundation/Apache2.2/icons/"
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/php.png .php
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif