upgrading.html.en revision fcd7f1f7d11d39b8379972a455e1c7e67a5dfa9d
b51bf223f42d43ca6b1b33c95124edcfa5a871a4nd<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
9963f91528694fb21e93da8584c31f226c6de97akess<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
b66914021bd429f41311d2909a7e9289866da7fdnd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
b66914021bd429f41311d2909a7e9289866da7fdnd This file is generated from xml source: DO NOT EDIT
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
b66914021bd429f41311d2909a7e9289866da7fdnd<title>Upgrading to 2.4 from 2.2 - Apache HTTP Server</title>
b66914021bd429f41311d2909a7e9289866da7fdnd<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
b66914021bd429f41311d2909a7e9289866da7fdnd<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
b66914021bd429f41311d2909a7e9289866da7fdnd<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
b66914021bd429f41311d2909a7e9289866da7fdnd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
b66914021bd429f41311d2909a7e9289866da7fdnd<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>
b66914021bd429f41311d2909a7e9289866da7fdnd<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
b66914021bd429f41311d2909a7e9289866da7fdnd<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="./">Version 2.3</a></div><div id="page-content"><div id="preamble"><h1>Upgrading to 2.4 from 2.2</h1>
b66914021bd429f41311d2909a7e9289866da7fdnd<p><span>Available Languages: </span><a href="/en/upgrading.html" title="English"> en </a> |
eed2a23d9b5986937f1e2b1c120be97744508a72nd<a href="/fr/upgrading.html" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a></p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>In order to assist folks upgrading, we maintain a document
eed2a23d9b5986937f1e2b1c120be97744508a72nd describing information critical to existing Apache HTTP Server users. These
eed2a23d9b5986937f1e2b1c120be97744508a72nd are intended to be brief notes, and you should be able to find
eed2a23d9b5986937f1e2b1c120be97744508a72nd more information in either the <a href="new_features_2_4.html">New Features</a> document, or in
eed2a23d9b5986937f1e2b1c120be97744508a72nd the <code>src/CHANGES</code> file. Application and module developers
eed2a23d9b5986937f1e2b1c120be97744508a72nd can find a summary of API changes in the <a href="developer/new_api_2_4.html">API updates</a> overview.</p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>This document describes changes in server behavior that might
eed2a23d9b5986937f1e2b1c120be97744508a72nd require you to change your configuration or how you use the server
eed2a23d9b5986937f1e2b1c120be97744508a72nd in order to continue using 2.4 as you are currently using 2.2.
eed2a23d9b5986937f1e2b1c120be97744508a72nd To take advantage of new features in 2.4, see the New Features
eed2a23d9b5986937f1e2b1c120be97744508a72nd document.</p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>This document describes only the changes from 2.2 to 2.4. If you
eed2a23d9b5986937f1e2b1c120be97744508a72nd are upgrading from version 2.0, you should also consult the <a href="http://httpd.apache.org/docs/2.2/upgrading.html">2.0 to 2.2
eed2a23d9b5986937f1e2b1c120be97744508a72nd<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#compile-time">Compile-Time Configuration Changes</a></li>
eed2a23d9b5986937f1e2b1c120be97744508a72nd<li><img alt="" src="/images/down.gif" /> <a href="#run-time">Run-Time Configuration Changes</a></li>
eed2a23d9b5986937f1e2b1c120be97744508a72nd<li><img alt="" src="/images/down.gif" /> <a href="#misc">Misc Changes</a></li>
eed2a23d9b5986937f1e2b1c120be97744508a72nd<li><img alt="" src="/images/down.gif" /> <a href="#third-party">Third Party Modules</a></li>
eed2a23d9b5986937f1e2b1c120be97744508a72nd<li><img alt="" src="/images/down.gif" /> <a href="#commonproblems">Common problems when upgrading</a></li>
eed2a23d9b5986937f1e2b1c120be97744508a72nd</ul><h3>See also</h3><ul class="seealso"><li><a href="new_features_2_4.html">Overview of new features in
eed2a23d9b5986937f1e2b1c120be97744508a72nd<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
eed2a23d9b5986937f1e2b1c120be97744508a72nd<h2><a name="compile-time" id="compile-time">Compile-Time Configuration Changes</a></h2>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>The compilation process is very similar to the one used in
eed2a23d9b5986937f1e2b1c120be97744508a72nd version 2.2. Your old <code>configure</code> command line (as
eed2a23d9b5986937f1e2b1c120be97744508a72nd found in <code>build/config.nice</code> in the installed server
eed2a23d9b5986937f1e2b1c120be97744508a72nd directory) can be used in most cases. There are some changes in
eed2a23d9b5986937f1e2b1c120be97744508a72nd the default settings. Some details of changes:</p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <li>These modules have been removed: mod_authn_default,
eed2a23d9b5986937f1e2b1c120be97744508a72nd mod_authz_default, mod_mem_cache. If you were using
eed2a23d9b5986937f1e2b1c120be97744508a72nd mod_mem_cache in 2.2, look at <code class="module"><a href="/mod/mod_cache_disk.html">mod_cache_disk</a></code> in
eed2a23d9b5986937f1e2b1c120be97744508a72nd <li>All load balancing implementations have been moved to
eed2a23d9b5986937f1e2b1c120be97744508a72nd individual, self-contained mod_proxy submodules, e.g.
eed2a23d9b5986937f1e2b1c120be97744508a72nd <code class="module"><a href="/mod/mod_lbmethod_bybusyness.html">mod_lbmethod_bybusyness</a></code>. You might need
eed2a23d9b5986937f1e2b1c120be97744508a72nd to build and load any of these that your configuration
eed2a23d9b5986937f1e2b1c120be97744508a72nd uses.</li>
bcf004854091600aa279525d6772e1827114d39dnd <li>Platform support has been removed for BeOS, TPF, and
eed2a23d9b5986937f1e2b1c120be97744508a72nd even older platforms such as A/UX, Next, and Tandem. These were
eed2a23d9b5986937f1e2b1c120be97744508a72nd believed to be broken anyway.</li>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <li>configure: dynamic modules (DSO) are built by default</li>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <li>configure: the "most" module set gets built by default</li>
eed2a23d9b5986937f1e2b1c120be97744508a72nd </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
eed2a23d9b5986937f1e2b1c120be97744508a72nd<h2><a name="run-time" id="run-time">Run-Time Configuration Changes</a></h2>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>There have been significant changes in authorization configuration,
eed2a23d9b5986937f1e2b1c120be97744508a72nd and other minor configuration changes, that could require changes to your 2.2
eed2a23d9b5986937f1e2b1c120be97744508a72nd configuration files before using them for 2.4.</p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>Any configuration file that uses authorization will likely
eed2a23d9b5986937f1e2b1c120be97744508a72nd need changes.</p>
9963f91528694fb21e93da8584c31f226c6de97akess <p>You should review the <a href="howto/auth.html">Authentication,
bcf004854091600aa279525d6772e1827114d39dnd Authorization and Access Control Howto</a>, especially the section
9963f91528694fb21e93da8584c31f226c6de97akess <a href="howto/auth.html#beyond">Beyond just authorization</a>
eed2a23d9b5986937f1e2b1c120be97744508a72nd which explains the new mechanisms for controlling the order in
eed2a23d9b5986937f1e2b1c120be97744508a72nd which the authorization directives are applied.</p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>In 2.2, access control based on client hostname, IP address,
eed2a23d9b5986937f1e2b1c120be97744508a72nd and other characteristics of client requests was done using the
eed2a23d9b5986937f1e2b1c120be97744508a72nd directives <code class="directive"><a href="/mod/mod_access_compat.html#order">Order</a></code>, <code class="directive"><a href="/mod/mod_access_compat.html#allow">Allow</a></code>, <code class="directive"><a href="/mod/mod_access_compat.html#deny">Deny</a></code>, and <code class="directive"><a href="/mod/mod_access_compat.html#satisfy">Satisfy</a></code>.</p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>In 2.4, such access control is done in the same way as other
eed2a23d9b5986937f1e2b1c120be97744508a72nd authorization checks, using the new module
eed2a23d9b5986937f1e2b1c120be97744508a72nd <code class="module"><a href="/mod/mod_authz_host.html">mod_authz_host</a></code>. The old access control idioms
b51bf223f42d43ca6b1b33c95124edcfa5a871a4nd should be replaced by the new authentication mechanisms,
eed2a23d9b5986937f1e2b1c120be97744508a72nd although for compatibility with old configurations, the new
eed2a23d9b5986937f1e2b1c120be97744508a72nd module <code class="module"><a href="/mod/mod_access_compat.html">mod_access_compat</a></code> is provided.</p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <p>Here are some examples of old and new ways to do the same
eed2a23d9b5986937f1e2b1c120be97744508a72nd access control.</p>
eed2a23d9b5986937f1e2b1c120be97744508a72nd <div class="example"><h3>2.2 configuration:</h3><p><code>
eed2a23d9b5986937f1e2b1c120be97744508a72nd Order deny,allow<br />
eed2a23d9b5986937f1e2b1c120be97744508a72nd Deny from all
eed2a23d9b5986937f1e2b1c120be97744508a72nd <div class="example"><h3>2.4 configuration:</h3><p><code>
eed2a23d9b5986937f1e2b1c120be97744508a72nd Require all denied
Allow from example.org
Require host example.org
<code class="directive"><a href="/mod/mpm_common.html#maxconnectionsperchild">MaxConnectionsPerChild</a></code>,
<li><code class="module"><a href="/mod/mod_log_config.html">mod_log_config</a></code>: <a href="modules/mod_log_config.html#formats">${cookie}C</a>
<li><code class="module"><a href="/mod/mod_dav_fs.html">mod_dav_fs</a></code>: The format of the <code class="directive"><a href="/mod/dav_fs.html#davlockdb">DavLockDB</a></code> file has changed for
systems with inodes. The old <code class="directive"><a href="/mod/dav_fs.html#davlockdb">DavLockDB</a></code> file must be deleted on
just be deleted or will need to be replaced using <code class="directive"><a href="/mod/core.html#mutex">Mutex</a></code>.</li>
<li><code class="module"><a href="/mod/mod_cache.html">mod_cache</a></code>: <code class="directive"><a href="/mod/cache.html#cacheignoreurlsessionidentifiers">CacheIgnoreURLSessionIdentifiers</a></code>
<li><code class="module"><a href="/mod/mod_ldap.html">mod_ldap</a></code>: <code class="directive"><a href="/mod/ldap.html#ldaptrustedclientcert">LDAPTrustedClientCert</a></code> is now
<li><code class="module"><a href="/mod/mod_filter.html">mod_filter</a></code>: <code class="directive"><a href="/mod/filter.html#filterprovider">FilterProvider</a></code> syntax has changed and
<li>The <code>#if expr</code> element now uses the new <a href="expr.html">expression parser</a>. The old syntax can be
restored with the new directive <code class="directive"><a href="/mod/include.html#ssilegacyexprparser">SSILegacyExprParser</a></code>.
<li><code class="module"><a href="/mod/mod_autoindex.html">mod_autoindex</a></code>: will now extract titles and
<li><code class="module"><a href="/mod/mod_ssl.html">mod_ssl</a></code>: The default format of the <code>*_DN</code>
<code>LegacyDNStringFormat</code> argument to <code class="directive"><a href="/mod/mod_ssl.html#ssloptions">SSLOptions</a></code>.</li>
<li><code class="program"><a href="/programs/htpasswd.html">htpasswd</a></code> now uses MD5 hash by default on
<li><code>Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration</code> - load module <code class="module"><a href="/mod/mod_unixd.html">mod_unixd</a></code></li>
<li><code>Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration</code>, or
<code>Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration</code>
- load module <code class="module"><a href="/mod/mod_access_compat.html">mod_access_compat</a></code>, or update configuration to 2.4 authorization directives.</li>
<li><code>Ignoring deprecated use of DefaultType in line NN of /path/to/httpd.conf</code> - remove <code class="directive"><a href="/mod/core.html#defaulttype">DefaultType</a></code>
<p><span>Available Languages: </span><a href="/en/upgrading.html" title="English"> en </a> |
<p class="apache">Copyright 2011 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>