apache自动生成目录文件列表配置

作者 : admin 于 2009年07月22日, 19:13:00
2009
07-22

由于种种原因,服务器给卖掉了,因此,我做的源码目录也就没了。这里把该目录的配置属性介绍一下:

  1. <directory /home/sunboyu/www_source.sunboyu.cn>
  2.         MaxConnPerIP 1
  3.         ReadmeName foot.html        #页面的头
  4.         HeaderName top.html          #页面的脚
  5.         IndexIgnore top.html foot.html    #列目录的时候,忽略这些文件
  6.         ServerSignature Off       #关闭服务器标志
  7.         IndexOptions FancyIndexing VersionSort FoldersFirst SuppressLastModified NameWidth=* Charset=UTF-8
  8.         Options FollowSymLinks
  9.         Options +Indexes
  10.         AllowOverride all
  11.         Order deny,allow
  12.         Allow from all
  13.  </directory>

FancyIndexing 打开列表功能

VersionSort 同一文件不同版本分类列出

FoldersFirst 文件夹优先

SuppressLastModified 禁止列出最后修改时间

NameWidth=* 文件名长度 *当然是全部显示

Charset=UTF-8 页面输出编码

AddIcon /other/icons/exe.gif .bin .exe 给exe bin扩展名添加exe.gif图标

ScanHTMLTitles 如果有html文件,则度html的title为描述