httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47928] New: CONNECT requests get fully qualified and therefore do not work
Date Thu, 01 Oct 2009 22:31:41 GMT
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: bugs@httpd.apache.org
        ReportedBy: billz@consultla.com


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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message