<-
Apache > HTTP Server > 文档 > 版本2.2 > 模块
   致谢 | 本篇译者:<虚位以待> | 本篇译稿完成时间:?年?月?日[查看最新版本] 电信镜像 网通镜像

Apache模块 mod_cern_meta

说明允许Apache使用CERN httpd元文件,从而可以在发送文件时对头进行修改
状态扩展(E)
模块名cern_meta_module
源文件mod_cern_meta.c

概述

Emulate the CERN HTTPD Meta file semantics. Meta files are HTTP headers that can be output in addition to the normal range of headers for each file accessed. They appear rather like the Apache .asis files, and are able to provide a crude way of influencing the Expires: header, as well as providing other curiosities. There are many ways to manage meta information, this one was chosen because there is already a large number of CERN users who can exploit this module.

More information on the CERN metafile semantics is available.

top

MetaDir 指令

说明Name of the directory to find CERN-style meta information files
语法MetaDir directory
默认值MetaDir .web
作用域server config, virtual host, directory, .htaccess
覆盖项Indexes
状态扩展(E)
模块mod_cern_meta

Specifies the name of the directory in which Apache can find meta information files. The directory is usually a 'hidden' subdirectory of the directory that contains the file being accessed. Set to "." to look in the same directory as the file:

MetaDir .

Or, to set it to a subdirectory of the directory containing the files:

MetaDir .meta

top

MetaFiles 指令

说明Activates CERN meta-file processing
语法MetaFiles on|off
默认值MetaFiles off
作用域server config, virtual host, directory, .htaccess
覆盖项Indexes
状态扩展(E)
模块mod_cern_meta

Turns on/off Meta file processing on a per-directory basis.

top

MetaSuffix 指令

说明File name suffix for the file containg CERN-style meta information
语法MetaSuffix suffix
默认值MetaSuffix .meta
作用域server config, virtual host, directory, .htaccess
覆盖项Indexes
状态扩展(E)
模块mod_cern_meta

Specifies the file name suffix for the file containing the meta information. For example, the default values for the two directives will cause a request to DOCUMENT_ROOT/somedir/index.html to look in DOCUMENT_ROOT/somedir/.web/index.html.meta and will use its contents to generate additional MIME header information.

示例:

MetaSuffix .meta