Apache 2下如何设置文件目录列表的编码
Submitted by admin on Thu, 12/03/2009 - 21:11
Web
来源地址: http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html
IndexOptions Directive
Description: Various configuration settings for directory indexing
Syntax: IndexOptions [+|-]option [[+|-]option] ...
Context: server config, virtual host, directory, .htaccess
Override: Indexes
Status: Base
Module: mod_autoindex
The IndexOptions directive specifies the behavior of the directory indexing. Option can be one of
Charset=character-set (Apache 2.0.61 and later)
The Charset keyword allows you to specify the character set of the generated page. The default is either ISO-8859-1 or UTF-8, depending on whether the underlying file system is unicode or not.
Example:
IndexOptions Charset=UTF-8