在httpd.conf和httpd-vhosts.conf中的<Directory>
标签中增加,IndexOptions NameWidth=*
然后重启apache即可。
示例如下:
<Directory "设置你的路径">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
IndexOptions Charset=UTF-8 #编码格式,防止中文乱码
IndexOptions NameWidth=* #根据文件名自动调整列宽
Allow from all
</Directory>