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

           Summary: CONNECT requests get fully qualified and therefore do
                    not work
           Product: Apache httpd-2
           Version: 2.2.14
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When mod_rewrite proxies a CONNECT request, it fully qualifies the substitution
string.  The result is a failed connection to the originally requested server
instead of the proxy server.

TEST CASE:
curl -x http://myproxyserver.com:9080 https://mysslserver.com

EXAMPLE APACHE CONFIG:
Listen 9080
NameVirtualHost *:9080
<VirtualHost *:9080>
    ServerName myproxyserver.com
    AllowCONNECT 8888
    RewriteEngine On

    RewriteCond %{REQUEST_METHOD} ^CONNECT$ [NC]
    RewriteCond %{HTTP_HOST} ^mysslserver.com:443$
    RewriteRule ^(.*)$ myqasslserver.com:8888 [P]
</VirtualHost>

RESULT:
The method fully_qualify_uri changes the substitution string from: 
myqasslserver.com:8888
to: 
http://mysslserver.com:443/myqasslserver.com:8888

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