欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Directory Listings
小 (→Options) |
|||
(未显示1个用户的2个中间版本) | |||
第1行: | 第1行: | ||
+ | ==Description== | ||
+ | |||
目录遍历 | 目录遍历 | ||
server.dir-listing = "enable" | 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" | ||
+ | |||
+ | [[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"