📄 new_features_2_2.html.en
字号:
<dd>A new module that authorizes access to files based on the owner of the file on the file system</dd> <dt><code class="module"><a href="./mod/mod_version.html">mod_version</a></code></dt> <dd>A new module that allows configuration blocks to be enabled based on the version number of the running server.</dd> <dt><code class="module"><a href="./mod/mod_info.html">mod_info</a></code></dt> <dd>Added a new <code>?config</code> argument which will show the configuration directives as parsed by Apache, including their file name and line number. The module also shows the order of all request hooks and additional build information, similar to <code>httpd -V</code>.</dd> <dt><code class="module"><a href="./mod/mod_ssl.html">mod_ssl</a></code></dt> <dd>Added a support for <a href="http://www.ietf.org/rfc/rfc2817.txt">RFC 2817</a>, which allows connections to upgrade from clear text to TLS encryption.</dd> <dt><code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code></dt> <dd><code>mod_imap</code> has been renamed to <code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code> to avoid user confusion.</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="programs" id="programs">Program Enhancements</a></h2> <dl> <dt><code class="program"><a href="./programs/httpd.html">httpd</a></code></dt> <dd>A new command line option <code>-M</code> has been added that lists all modules that are loaded based on the current configuration. Unlike the <code>-l</code> option, this list includes DSOs loaded via <code class="module"><a href="./mod/mod_so.html">mod_so</a></code>.</dd> <dt><code class="program"><a href="./programs/httxt2dbm.html">httxt2dbm</a></code></dt> <dd>A new program used to generate dbm files from text input, for use in <code class="directive"><a href="./mod/mod_rewrite.html#rewritemap">RewriteMap</a></code> with the <code>dbm</code> map type.</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="developer" id="developer">Module Developer Changes</a></h2> <dl> <dt><a class="glossarylink" href="./glossary.html#apr" title="see glossary">APR</a> 1.0 API</dt> <dd>Apache 2.2 uses the APR 1.0 API. All deprecated functions and symbols have been removed from <code>APR</code> and <code>APR-Util</code>. For details, see the <a href="http://apr.apache.org/">APR Website</a>.</dd> <dt>Authn/Authz</dt> <dd>The bundled authentication and authorization modules have been renamed along the following lines: <ul> <li><code>mod_auth_*</code> -> Modules that implement an HTTP authentication mechanism</li> <li><code>mod_authn_*</code> -> Modules that provide a backend authentication provider</li> <li><code>mod_authz_*</code> -> Modules that implement authorization (or access)</li> <li><code>mod_authnz_*</code> -> Module that implements both authentication & authorization</li> </ul> There is a new authentication backend provider scheme which greatly eases the construction of new authentication backends.</dd> <dt>Connection Error Logging</dt> <dd>A new function, <code>ap_log_cerror</code> has been added to log errors that occur with the client's connection. When logged, the message includes the client IP address.</dd> <dt>Test Configuration Hook Added</dt> <dd>A new hook, <code>test_config</code> has been added to aid modules that want to execute special code only when the user passes <code>-t</code> to <code class="program"><a href="./programs/httpd.html">httpd</a></code>.</dd> <dt>Set Threaded MPM's Stacksize</dt> <dd>A new directive, <code class="directive"><a href="./mod/mpm_common.html#threadstacksize">ThreadStackSize</a></code> has been added to set the stack size on all threaded MPMs. This is required for some third-party modules on platforms with small default thread stack size.</dd> <dt>Protocol handling for output filters</dt> <dd>In the past, every filter has been responsible for ensuring that it generates the correct response headers where it affects them. Filters can now delegate common protocol management to <code class="module"><a href="./mod/mod_filter.html">mod_filter</a></code>, using the <code>ap_register_output_filter_protocol</code> or <code>ap_filter_protocol</code> calls.</dd> <dt>Monitor hook added</dt> <dd>Monitor hook enables modules to run regular/scheduled jobs in the parent (root) process.</dd> <dt>Regular expression API changes</dt> <dd>The <code>pcreposix.h</code> header is no longer available; it is replaced by the new <code>ap_regex.h</code> header. The POSIX.2 <code>regex.h</code> implementation exposed by the old header is now available under the <code>ap_</code> namespace from <code>ap_regex.h</code>. Calls to <code>regcomp</code>, <code>regexec</code> and so on can be replaced by calls to <code>ap_regcomp</code>, <code>ap_regexec</code>.</dd> <dt>DBD Framework (SQL Database API)</dt> <dd><p>With Apache 1.x and 2.0, modules requiring an SQL backend had to take responsibility for managing it themselves. Apart from reinventing the wheel, this can be very inefficient, for example when several modules each maintain their own connections.</p> <p>Apache 2.1 and later provides the <code>ap_dbd</code> API for managing database connections (including optimised strategies for threaded and unthreaded MPMs), while APR 1.2 and later provides the <code>apr_dbd</code> API for interacting with the database.</p> <p>New modules SHOULD now use these APIs for all SQL database operations. Existing applications SHOULD be upgraded to use it where feasible, either transparently or as a recommended option to their users.</p></dd> </dl> </div></div><div class="bottomlang"><p><span>Available Languages: </span><a href="./en/new_features_2_2.html" title="English"> en </a> |<a href="./fr/new_features_2_2.html" hreflang="fr" rel="alternate" title="Fran鏰is"> fr </a> |<a href="./ko/new_features_2_2.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |<a href="./pt-br/new_features_2_2.html" hreflang="pt-br" rel="alternate" title="Portugu阺 (Brasil)"> pt-br </a> |<a href="./tr/new_features_2_2.html" hreflang="tr" rel="alternate" title="T黵k鏴"> tr </a></p></div><div id="footer"><p class="apache">Copyright 2008 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 + -