https://issues.apache.org/bugzilla/show_bug.cgi?id=52831

             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
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    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
address.

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to