作者:wzcheng1984 | 来源:互联网 | 2023-01-04 20:04
httpdapacheindex显示文件名长度 通常情况下,文件名过长,打开index后,过长的文件名会最后会显示.. 在centos中文件所谓位置etchttpdconf.dh
httpd apache index 显示文件名长度
通常情况下,文件名过长,打开index后,过长的文件名会最后会显示..
在centos中文件所谓位置etc/httpd/conf.d/httpd-autoindex.conf
在配置文件httpd-autoindex.conf中的修改:
IndexOptions FancyIndexing HTMLTable VersionSort NameWidth=* FoldersFirst Charset=UTF-8 SuppressDescription SuppressHTMLPreamble
其中
FancyIndexing 支持美化显示;
HTMLTable 允许底层代码把文件列表生成在一个table元素里面;
VersionSort 安装版本排序;
NameWidth=* 页面自动匹配文件名宽度;
FoldersFirst 安装文件夹优先排列;
Charset=UTF-8 支持中文显示;
SuppressDescription 不显示文件描述;