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

           Summary: mod_proxy rewrites incorrectly IPv6 literal addresses
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_http
        AssignedTo: [email protected]
        ReportedBy: [email protected]


mod_proxy rewrites a received request of 
GET
http://[2001:4860:a005::84]/search?q=cache:KD9mYbWwEgkJ:www.apache.org/+apache&cd=1&hl=en&ct=clnk
HTTP/1.1
Host: [2001:4860:a005::84]

into 

GET /search?q=cache:KD9mYbWwEgkJ:www.apache.org/+apache&cd=1&hl=en&ct=clnk
HTTP/1.1
Host: 2001:4860:a005::84

Which is incorrect, loosely according to RFC 3986 (for URI syntax),
(http://tools.ietf.org/html/rfc3986), that says "A host identified by an
Internet Protocol literal address, version 6 [RFC3513] or later, is
distinguished by enclosing the IP literal within square brackets ("[" and
"]")".

The right way to do it would be to use
GET /search?q=cache:KD9mYbWwEgkJ:www.apache.org/+apache&cd=1&hl=en&ct=clnk
HTTP/1.1
Host: [2001:4860:a005::84]

This behaviour can be worked around by using "ProxyPreserveHost On", but that
should be the default behaviours. 

This behaviour leads to infinite redirection in servers that detect the error
and redirect to http://[2001:4860:a005::84]/search... (like Google Web Server
when used for caching)

-- 
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