标题:开启/订制Apache目录列表样式 出处:刘新修 时间:Tue, 14 Jan 2014 18:00:55 +0000 作者:刘新修 地址:http://liuxinxiu.com:80/Apache_list/ 内容: 开启Apache目录列表: 首先找到/usr/local/apache/conf/httpd.conf 文件搜索 #Include conf/extra/httpd-autoindex.conf (去掉注释# 启用) 修改/usr/local/apache/conf/extra/httpd-autoindex.conf 注释掉:#IndexOptions FancyIndexing HTMLTable VersionSort 启用:indexOptions FancyIndexing ScanHTMLTitles NameWidth=128 DescriptionWidth=256 HTMLTable VersionSort FoldersFirst ####################################################################### 之后遇到Apache列表索引中文乱码问,在httpd-autoindex.conf文件中添加:Charset=GBK indexOptions Charset=GBK FancyIndexing ScanHTMLTitles NameWidth=128 DescriptionWidth=256 HTMLTable VersionSort FoldersFirst 重启Apache问题解决~ 虚拟主机配置处添加: C#代码 Options Indexes FollowSymLinks AllowOverride All Order allow,deny Order deny,allow Allow from all Apache 配置显示版本信息: C#代码 ########### Add ############## AddDefaultCharset GBK ServerSignature On ########### Add ############## Include shost/*.conf Generated by Bo-blog 2.1.1 Release