企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# Apache模块 mod_cern_meta | [说明](#calibre_link-11) | 允许Apache使用CERN httpd元文件,从而可以在发送文件时对头进行修改 | | --- | --- | | [状态](#calibre_link-12) | 扩展(E) | | [模块名](#calibre_link-13) | cern_meta_module | | [源文件](#calibre_link-14) | 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](http://www.w3.org/pub/WWW/Daemon/User/Config/General.html#MetaDir) is available. ## MetaDir 指令 | [说明](#calibre_link-18) | Name of the directory to find CERN-style meta information files | | --- | --- | | [语法](#calibre_link-19) | `MetaDir directory` | | [默认值](#calibre_link-24) | `MetaDir .web` | | [作用域](#calibre_link-20) | server config, virtual host, directory, .htaccess | | [覆盖项](#calibre_link-66) | Indexes | | [状态](#calibre_link-21) | 扩展(E) | | [模块](#calibre_link-22) | 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 ``` ## MetaFiles 指令 | [说明](#calibre_link-18) | Activates CERN meta-file processing | | --- | --- | | [语法](#calibre_link-19) | `MetaFiles on|off` | | [默认值](#calibre_link-24) | `MetaFiles off` | | [作用域](#calibre_link-20) | server config, virtual host, directory, .htaccess | | [覆盖项](#calibre_link-66) | Indexes | | [状态](#calibre_link-21) | 扩展(E) | | [模块](#calibre_link-22) | mod_cern_meta | Turns on/off Meta file processing on a per-directory basis. ## MetaSuffix 指令 | [说明](#calibre_link-18) | File name suffix for the file containg CERN-style meta information | | --- | --- | | [语法](#calibre_link-19) | `MetaSuffix suffix` | | [默认值](#calibre_link-24) | `MetaSuffix .meta` | | [作用域](#calibre_link-20) | server config, virtual host, directory, .htaccess | | [覆盖项](#calibre_link-66) | Indexes | | [状态](#calibre_link-21) | 扩展(E) | | [模块](#calibre_link-22) | 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 ```