httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52831] New: mod_rewrite redirect broken with IPv6 literal address
Date Mon, 05 Mar 2012 18:05:39 GMT

             Bug #: 52831
           Summary: mod_rewrite redirect broken with IPv6 literal address
           Product: Apache httpd-2
           Version: 2.2.21
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
    Classification: Unclassified

A redirect written using mod_rewrite is broken when the URL uses a literal IPv6
address, the redirect location is missing the square brackets around the IPv6

To test set the following two rewrite rules

RewriteRule ^/a/                        /A/ [R,L]
RewriteRule ^/c/                        C/ [R,L]

Let's say the server's IPv6 address is fd35:299:14bc:0:21d:50ff:fe00:1a, then
with http://[fd35:299:14bc:0:21d:50ff:fe00:1a]/a/ the redirect location is
http://fd35:299:14bc:0:21d:50ff:fe00:1a/a/ and similar for /c.

This issue has been fixed with other mod_alias redirects and mod_proxy but it
is still present in mod_rewrite as of 2.2.21.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message