You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2011/12/01 15:03:49 UTC
svn commit: r1209089 - in /httpd/httpd/branches/2.4.x: ./
docs/manual/developer/new_api_2_4.xml
Author: minfrin
Date: Thu Dec 1 14:03:49 2011
New Revision: 1209089
URL: http://svn.apache.org/viewvc?rev=1209089&view=rev
Log:
Changes to v2.4 APIs.
Modified:
httpd/httpd/branches/2.4.x/ (props changed)
httpd/httpd/branches/2.4.x/docs/manual/developer/new_api_2_4.xml
Propchange: httpd/httpd/branches/2.4.x/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Dec 1 14:03:49 2011
@@ -1,3 +1,3 @@
/httpd/httpd/branches/revert-ap-ldap:1150158-1150173
/httpd/httpd/branches/wombat-integration:723609-723841
-/httpd/httpd/trunk:1201042,1201111,1201194,1201198,1201202,1202456,1202886,1203859,1204630,1204968,1204990,1205061,1205075,1205379,1205885,1206291,1206587,1207719,1208753,1208835,1209053
+/httpd/httpd/trunk:1201042,1201111,1201194,1201198,1201202,1202456,1202886,1203859,1204630,1204968,1204990,1205061,1205075,1205379,1205885,1206291,1206587,1207719,1208753,1208835,1209053,1209085
Modified: httpd/httpd/branches/2.4.x/docs/manual/developer/new_api_2_4.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/developer/new_api_2_4.xml?rev=1209089&r1=1209088&r2=1209089&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/developer/new_api_2_4.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/developer/new_api_2_4.xml Thu Dec 1 14:03:49 2011
@@ -153,6 +153,9 @@
<li>Modules that load other modules later than the EXEC_ON_READ config
reading stage need to call ap_reserve_module_slots() or
ap_reserve_module_slots_directive() in their pre_config hook.</li>
+ <li>The client IP address per request can now be specified independently
+ of the peer IP address of the connection for the benefit of load
+ balancers</li>
</ul>
</section>
@@ -454,6 +457,26 @@
<dt><code>unixd_config</code></dt>
<dd>This has been renamed to ap_unixd_config.</dd>
+
+ <dt><code>conn_rec->remote_ip and conn_rec->remote_addr</code></dt>
+ <dd>In order to distinguish between the peer IP address of the
+ connection, and the client IP address of the request potentially
+ overridden by a load balancer or proxy, the above variables have
+ been renamed. If a module makes reference to either of the above
+ variables, they need to be replaced with one of the following two
+ options as appropriate for the module:
+ <ul>
+ <li>When you require the IP address of the client, which might
+ be connected directly to the server, or might optionally be
+ separated from the server by a transparent load balancer or
+ proxy, use request_rec->client_ip and
+ request_rec->client_addr.</li>
+ <li>When you require the IP address of the peer that is
+ connected directly to the server, which might be the client or
+ might be the load balancer or proxy itself, use
+ conn_rec->peer_ip and conn_rec->peer_addr.</li>
+ </ul>
+ </dd>
</dl>
</section>