📄 configure.html.en
字号:
<h3><a name="systemtypes" id="systemtypes">System types</a></h3>
<p>These options are used to cross-compile the Apache HTTP Server to run on
another system. In normal cases, when building and running the server on
the same system, these options are not used.</p>
<dl>
<dt><code>--build=<var>BUILD</var></code></dt>
<dd>Defines the system type of the system on which the tools are being
built. It defaults to the result of the script
<code>config.guess</code>.</dd>
<dt><code>--host=<var>HOST</var></code></dt>
<dd>Defines the system type of the system on which the server will run.
<var>HOST</var> defaults to <var>BUILD</var>.</dd>
<dt><code>--target=<var>TARGET</var></code></dt>
<dd>Configure for building compilers for the system type
<var>TARGET</var>. It defaults to <var>HOST</var>. This option is
offered by <code>autoconf</code> and not necessary for the Apache HTTP
Server.</dd>
</dl>
<h3><a name="optionalfeatures" id="optionalfeatures">Optional Features</a></h3>
<p>These options are used to fine tune the features your HTTP server will
have.</p>
<h4><a name="generaloptfeat" id="generaloptfeat">General syntax</a></h4>
<p>Generally you can use the following syntax to enable or disable a
feature:</p>
<dl>
<dt><code>--disable-<var>FEATURE</var></code></dt>
<dd>Do not include <var>FEATURE</var>. This is the same as
<code>--enable-<var>FEATURE</var>=no</code>.</dd>
<dt><code>--enable-<var>FEATURE</var>[=<var>ARG</var>]</code></dt>
<dd>Include <var>FEATURE</var>. The default value for <var>ARG</var>
is <code>yes</code>.</dd>
<dt><code>--enable-<var>MODULE</var>=shared</code></dt>
<dd>The corresponding module will be build as DSO module.</dd>
<dt><code>--enable-<var>MODULE</var>=static</code></dt>
<dd>By default enabled modules are linked statically. You can force
this explicitly.</dd>
</dl>
<div class="note"><h3>Note</h3>
<code>configure</code> will not complain about
<code>--enable-<var>foo</var></code> even if <var>foo</var> doesn't
exist, so you need to type carefully.
</div>
<h4><a name="enabledmodules" id="enabledmodules">Modules enabled by default</a></h4>
<p>Some modules are compiled by default and have to be disabled
explicitly. Use the following options to remove discrete modules from
the compilation process.</p>
<dl>
<dt><code>--disable-actions</code></dt>
<dd>Disable action triggering on requests, which is provided by
<code class="module"><a href="../mod/mod_actions.html">mod_actions</a></code>.</dd>
<dt><code>--disable-alias</code></dt>
<dd>Disable the mapping of requests to different parts of the
filesystem, which is provided by <code class="module"><a href="../mod/mod_alias.html">mod_alias</a></code>.</dd>
<dt><code>--disable-asis</code></dt>
<dd>Disable support for as-is filetypes, which is provided by
<code class="module"><a href="../mod/mod_asis.html">mod_asis</a></code>.</dd>
<dt><code>--disable-auth</code></dt>
<dd>Disable user-based access control provided by
<code class="module"><a href="../mod/mod_auth.html">mod_auth</a></code>. This module provides for HTTP Basic
Authentication, where the usernames and passwords are stored in
plain text files.</dd>
<dt><code>--disable-autoindex</code></dt>
<dd>Disable the directory listing functionality provided by
<code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code>.</dd>
<dt><code>--disable-access</code></dt>
<dd>Disable host-based access control provided by
<code class="module"><a href="../mod/mod_access.html">mod_access</a></code>.</dd>
<dt><code>--disable-cgi</code></dt>
<dd><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>, which provides support for CGI scripts,
is enabled by default when using a non-threaded MPM. Use this
option to disable CGI support.</dd>
<dt><code>--disable-cgid</code></dt>
<dd>When using the threaded MPMs <code class="module"><a href="../mod/worker.html">worker</a></code> or
<code class="module"><a href="../mod/perchild.html">perchild</a></code> support for CGI scripts is provided by
<code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code> by default. To disable CGI support use
this option.</dd>
<dt><code>--disable-charset-lite</code></dt>
<dd>Disable character set translation provided by
<code class="module"><a href="../mod/mod_charset_lite.html">mod_charset_lite</a></code>. This module will be installed by
default only on EBCDIC systems.</dd>
<dt><code>--disable-dir</code></dt>
<dd>Disable directory request handling provided by
<code class="module"><a href="../mod/mod_dir.html">mod_dir</a></code>.</dd>
<dt><code>--disable-env</code></dt>
<dd>Disable setting and clearing of environment variables, which is
provided by <code class="module"><a href="../mod/mod_env.html">mod_env</a></code>.</dd>
<dt><code>--disable-http</code></dt>
<dd>Disable the HTTP protocol handling. The <code>http</code>
module is a basic one, enabling the server to function as an
HTTP server. It is only useful to disable it if you want to use
another protocol module instead. <strong>Don't disable this
module unless you are really sure what you are doing.</strong>
<br />
Note: This module will always be linked statically.</dd>
<dt><code>--disable-imap</code></dt>
<dd>Disable support for server based imagemaps, which provided by
<code class="module"><a href="../mod/mod_imap.html">mod_imap</a></code>.</dd>
<dt><code>--disable-include</code></dt>
<dd>Disable Server Side Includes provided by
<code class="module"><a href="../mod/mod_include.html">mod_include</a></code>.</dd>
<dt><code>--disable-log-config</code></dt>
<dd>Disable the logging configuration provided by
<code class="module"><a href="../mod/mod_log_config.html">mod_log_config</a></code>. You won't be able to log requests
to the server without this module.</dd>
<dt><code>--disable-mime</code></dt>
<dd><code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code> associates the requested filename's
extensions with the file's behavior and content (mime-type,
language, character set and encoding). Disabling the mapping of
file-extensions to MIME is normally not recommended.</dd>
<dt><code>--disable-negotiation</code></dt>
<dd>Disable content negotiation provided by
<code class="module"><a href="../mod/mod_negotiation.html">mod_negotiation</a></code>.</dd>
<dt><code>--disable-setenvif</code></dt>
<dd>Disable support for basing environment variables on headers,
which is provided by <code class="module"><a href="../mod/mod_setenvif.html">mod_setenvif</a></code>.</dd>
<dt><code>--disable-status</code></dt>
<dd>Disable the process/thread monitoring, which is provided by
<code class="module"><a href="../mod/mod_status.html">mod_status</a></code>.</dd>
<dt><code>--disable-userdir</code></dt>
<dd>Disable the mapping of requests to user-specific directories,
which is provided by <code class="module"><a href="../mod/mod_userdir.html">mod_userdir</a></code>.</dd>
</dl>
<h4><a name="disabledmodules" id="disabledmodules">Modules, disabled by default</a></h4>
<p>Some modules are compiled by default and have to be enabled
explicitly or by using the keywords <code>most</code> or
<code>all</code> (see <code>--enable-mods-shared</code> below for
further explanation) to be available. Therefore use the options
below.</p>
<dl>
<dt><code>--enable-auth-anon</code></dt>
<dd>Enable anonymous user access provided by
<code class="module"><a href="../mod/mod_auth_anon.html">mod_auth_anon</a></code>.</dd>
<dt><code>--enable-auth-dbm</code></dt>
<dd><code class="module"><a href="../mod/mod_auth_dbm.html">mod_auth_dbm</a></code> provides for HTTP Basic
Authentication, where the usernames and passwords are stored in DBM
type database files. Use this option to enable the module.</dd>
<dt><code>--enable-auth-digest</code></dt>
<dd>Enable RFC2617 Digest authentication provided by
<code class="module"><a href="../mod/mod_auth_digest.html">mod_auth_digest</a></code>. This module uses plain text files
to store the credentials.</dd>
<dt><code>--enable-auth-ldap</code></dt>
<dd>Enable LDAP based authentication provided by
<code class="module"><a href="../mod/mod_auth_ldap.html">mod_auth_ldap</a></code>.</dd>
<dt><code>--enable-cache</code></dt>
<dd>Enable dynamic file caching provided by
<code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code>. This experimental module may be
interesting for servers with high load or caching proxy servers. At
least one storage management module (e.g.
<code class="module"><a href="../mod/mod_disk_cache.html">mod_disk_cache</a></code> or <code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code>)
is also necessary.</dd>
<dt><code>--enable-cern-meta</code></dt>
<dd>Enable the CERN-type meta files support provided by
<code class="module"><a href="../mod/mod_cern_meta.html">mod_cern_meta</a></code>.</dd>
<dt><code>--enable-charset-lite</code></dt>
<dd>Enable character set translation provided by
<code class="module"><a href="../mod/mod_charset_lite.html">mod_charset_lite</a></code>. This module will be installed by
default only on EBCDIC systems. On other systems, you have to enable
it.</dd>
<dt><code>--enable-dav</code></dt>
<dd>Enable the WebDAV protocol handling provided by
<code class="module"><a href="../mod/mod_dav.html">mod_dav</a></code>. Support for filesystem resources is
provided by the seperate module <code class="module"><a href="../mod/mod_dav_fs.html">mod_dav_fs</a></code>. This
module is also automatically enabled with
<code>--enable-dav</code>.<br />
Note: <code class="module"><a href="../mod/mod_dav.html">mod_dav</a></code> can only be used together with the
<code>http</code> protocol module.</dd>
<dt><code>--enable-dav-fs</code></dt>
<dd>Enable DAV support for filesystem resources, which is provided by
<code class="module"><a href="../mod/mod_dav_fs.html">mod_dav_fs</a></code>. This module is a provider for the
<code class="module"><a href="../mod/mod_dav.html">mod_dav</a></code> module, so you should also use
<code>--enable-dav</code>.</dd>
<dt><code>--enable-deflate</code></dt>
<dd>Enable deflate transfer encoding provided by
<code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code>.</dd>
<dt><code>--enable-disk-cache</code></dt>
<dd>Enable disk caching provided by
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -