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 46534] New: mod_proxy_ajp scheme and port do not follow UseCanonicalPhysicalPort
Date Thu, 15 Jan 2009 04:06:33 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46534

           Summary: mod_proxy_ajp scheme and port do not follow
                    UseCanonicalPhysicalPort
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_ajp
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: r.egglestone@auckland.ac.nz


Created an attachment (id=23119)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23119)
Use ap_http_scheme and ap_get_server_port to determine the scheme and port

At present mod_proxy_ajp will always send through the real scheme and port of
the request through to a backend server. If the backend server wishes to
perform a redirect, then the client will be redirected to the wrong place.


For example, I'm using SSL offload appliance sitting in front of Apache, and
Apache receives http on either 80 or 81 for normal or secure. At present,
Apache will send http+81 through to the backend server, however with
UseCanonicalName off, UseCanonicalPhysicalPort off, and a ServerName of
"https://....:443", I believe it should be going through as https+443.
(Following the advice given in
http://httpd.apache.org/docs/2.2/mod/core.html#servername)


The attached patch makes use of the ap_http_scheme and ap_get_server_port
functions, so that the UseCanonicalX directives are respected.


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