原创 使用Apache的IndexOptions FancyIndexing选项收藏

新一篇: php AES128加密解密类的使用 | 旧一篇: windows+apache+mysql+php配置手记

使用IndexOptions FancyIndexing选项,

当访问没有DirectoryIndex指定文档的目录时,启用该选项可以针对目录下不同类型的文档指定相对应的icon

示例如下:

编辑httpd.conf,把下列代码放于任意位置:

IndexOptions FancyIndexing AddIcon /other/icons/exe.gif .bin .exe AddIcon /other/icons/dir.gif ^^DIRECTORY^^ AddIcon /other/icons/txt.gif .txt .php .PHP AddIcon /other/icons/html.gif .htm .html AddIcon /other/icons/image.gif .gif .jpg .bmp .png

重启apache

发表于 @ 2008年06月25日 14:35:00|评论(loading...)|编辑|收藏

新一篇: php AES128加密解密类的使用 | 旧一篇: windows+apache+mysql+php配置手记

评论:没有评论。

发表评论  


当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
Csdn Blog version 3.1a
Copyright © jom_ch