You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@Fujitsu-Siemens.com> on 2008/02/29 13:16:06 UTC

[PATCH] mod_proxy.c: ProxyDomain should not rewrite IPv6 address literals

When sending a proxy request of the form
  GET http://[3ffe:1:1001:3000:230:5ff:fe05:3c3c]/server-status HTTP/1.0
through the httpd-2.x mod_proxy.c code, while a directive
  ProxyDomain .my.dom.ain
is in effect, the request is redirected to
  Location: http://[3ffe:1:1001:3000:230:5ff:fe05:3c3c.my.dom.ain]/server-status

The patch (also committed to httpd-2.3.x-dev) fixes this bug, by
testing whether the hostname part of the unparsed_uri contains
colon characters (which is the case only for IPv6 literals).

This patch is also a candidate for httpd-2.0 and httpd-2.2

   Martin
-- 
<Ma...@Fujitsu-Siemens.com>        |     Fujitsu Siemens
http://www.fujitsu-siemens.com/imprint.html | 81730  Munich,  Germany