Directory Listings

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Options)
 
(未显示1个用户的1个中间版本)
第14行: 第14行:
 
==Options==
 
==Options==
 
dir-listing.activate
 
dir-listing.activate
 +
 
enables virtual directory listings if a directory is requested no index-file was found
 
enables virtual directory listings if a directory is requested no index-file was found
 +
 
default: disabled
 
default: disabled
 
 
 
 
 
dir-listing.hide-dotfiles
 
dir-listing.hide-dotfiles
 +
 
if enabled, does not list hidden files in directory listings generated by the dir-listing option.
 
if enabled, does not list hidden files in directory listings generated by the dir-listing option.
 +
 
default: enabled
 
default: enabled
 
 
 
 
 
dir-listing.external-css
 
dir-listing.external-css
 +
 
path to an external css stylesheet for the directory listing
 
path to an external css stylesheet for the directory listing
 +
 
default: use internal css
 
default: use internal css
 
   
 
   
 
dir-listing.show-readme
 
dir-listing.show-readme
 +
 
if a README.txt is the requested directory it will be appended to the output. The README.txt will HTML encoded and is covered by a pre-tag with the class 'readme'.
 
if a README.txt is the requested directory it will be appended to the output. The README.txt will HTML encoded and is covered by a pre-tag with the class 'readme'.
 +
 
default: disabled
 
default: disabled
 
   
 
   
 
dir-listing.encoding
 
dir-listing.encoding
 +
 
content encoding of the filenames (and README.txt)
 
content encoding of the filenames (and README.txt)
 +
 
default: iso8859-1
 
default: iso8859-1
 
  dir-listing.encoding = "utf-8"
 
  dir-listing.encoding = "utf-8"
 +
 +
[[category:PHP]]

2013年1月22日 (二) 05:29的最后版本

[编辑] Description

目录遍历

server.dir-listing = "enable"

If you need it only for a directory, use conditionals:

$HTTP["url"] =~ "^/download($|/)" {
 dir-listing.activate = "enable"
}

You can also use a external generator for directory listings if you use mod_indexfile.

index-file.names = ( "/dir-generator.php" )

[编辑] Options

dir-listing.activate

enables virtual directory listings if a directory is requested no index-file was found

default: disabled

dir-listing.hide-dotfiles

if enabled, does not list hidden files in directory listings generated by the dir-listing option.

default: enabled

dir-listing.external-css

path to an external css stylesheet for the directory listing

default: use internal css

dir-listing.show-readme

if a README.txt is the requested directory it will be appended to the output. The README.txt will HTML encoded and is covered by a pre-tag with the class 'readme'.

default: disabled

dir-listing.encoding

content encoding of the filenames (and README.txt)

default: iso8859-1

dir-listing.encoding = "utf-8"
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱