📄 directive-dict.html.en
字号:
directive is legal. It's a comma-separated list of one or more
of the following values:</p>
<dl>
<dt>server config</dt>
<dd>This means that the directive may be used in the server
configuration files (<em>e.g.</em>, <code>httpd.conf</code>), but
<strong>not</strong> within any
<code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>
or <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code>
containers. It is not allowed in <code>.htaccess</code> files
at all.</dd>
<dt>virtual host</dt>
<dd>This context means that the directive may appear inside
<code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>
containers in the server
configuration files.</dd>
<dt>directory</dt>
<dd>A directive marked as being valid in this context may be
used inside <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code>,
<code class="directive"><a href="../mod/core.html#location"><Location></a></code>,
and <code class="directive"><a href="../mod/core.html#files"><Files></a></code>
containers in the server configuration files, subject to the
restrictions outlined in <a href="../sections.html">How
Directory, Location and Files sections work</a>.</dd>
<dt>.htaccess</dt>
<dd>If a directive is valid in this context, it means that it
can appear inside <em>per</em>-directory
<code>.htaccess</code> files. It may not be processed, though
depending upon the <a href="#Override">overrides</a> currently active.</dd>
</dl>
<p>The directive is <em>only</em> allowed within the designated
context; if you try to use it elsewhere, you'll get a
configuration error that will either prevent the server from
handling requests in that context correctly, or will keep the
server from operating at all -- <em>i.e.</em>, the server won't
even start.</p>
<p>The valid locations for the directive are actually the
result of a Boolean OR of all of the listed contexts. In other
words, a directive that is marked as being valid in
"<code>server config, .htaccess</code>" can be used in the
<code>httpd.conf</code> file and in <code>.htaccess</code>
files, but not within any <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> or
<code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>
containers.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="Override" id="Override">Override</a></h2>
<p>This directive attribute indicates which configuration
override must be active in order for the directive to be
processed when it appears in a <code>.htaccess</code> file. If
the directive's <a href="#Context">context</a>
doesn't permit it to appear in <code>.htaccess</code> files,
then no context will be listed.</p>
<p>Overrides are activated by the <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code> directive, and apply
to a particular scope (such as a directory) and all
descendants, unless further modified by other
<code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code> directives at
lower levels. The documentation for that directive also lists the
possible override names available.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="Status" id="Status">Status</a></h2>
<p>This indicates how tightly bound into the Apache Web server
the directive is; in other words, you may need to recompile the
server with an enhanced set of modules in order to gain access
to the directive and its functionality. Possible values for
this attribute are:</p>
<dl>
<dt>Core</dt>
<dd>If a directive is listed as having "Core" status, that
means it is part of the innermost portions of the Apache Web
server, and is always available.</dd>
<dt>MPM</dt>
<dd>A directive labeled as having "MPM" status is provided by
a <a href="../mpm.html">Multi-Processing Module</a>. This
type of directive will be available if and only if you are
using one of the MPMs listed on the <a href="#Module">Module</a> line of the directive
definition.</dd>
<dt>Base</dt>
<dd>A directive labeled as having "Base" status is supported
by one of the standard Apache modules which is compiled into
the server by default, and is therefore normally available
unless you've taken steps to remove the module from your
configuration.</dd>
<dt>Extension</dt>
<dd>A directive with "Extension" status is provided by one of
the modules included with the Apache server kit, but the
module isn't normally compiled into the server. To enable the
directive and its functionality, you will need to change the
server build configuration files and re-compile Apache.</dd>
<dt>Experimental</dt>
<dd>"Experimental" status indicates that the directive is
available as part of the Apache kit, but you're on your own
if you try to use it. The directive is being documented for
completeness, and is not necessarily supported. The module
which provides the directive may or may not be compiled in by
default; check the top of the page which describes the
directive and its module to see if it remarks on the
availability.</dd>
</dl>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="Module" id="Module">Module</a></h2>
<p>This quite simply lists the name of the source module which
defines the directive.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="Compatibility" id="Compatibility">Compatibility</a></h2>
<p>If the directive wasn't part of the original Apache version
2 distribution, the version in which it was introduced should
be listed here. In addition, if the directive is available
only on certain platforms, it will be noted here.</p>
</div></div>
<div class="bottomlang">
<p><span>Available Languages: </span><a href="../en/mod/directive-dict.html" title="English"> en </a> |
<a href="../es/mod/directive-dict.html" hreflang="es" rel="alternate" title="Espa駉l"> es </a> |
<a href="../ja/mod/directive-dict.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/mod/directive-dict.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
</div><div id="footer">
<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -