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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to