https://issues.apache.org/bugzilla/show_bug.cgi?id=55315
Bug ID: 55315
Summary: error in ProxyPass URL parsing with interpolation
Product: Apache httpd-2
Version: 2.2.25
Hardware: PC
Status: NEW
Severity: regression
Priority: P2
Component: mod_proxy
Assignee: [email protected]
Reporter: [email protected]
Possible parsing regression in mod_proxy regarding interpolation of environment
variables into URLs specified in ProxyPass and ProxyPassReverse directives.
I have a virtual host which acts as a reverse proxy to an application
running elsewhere which must preserve the protocol used by the incoming request
(HTTP or HTTPS) when making the proxied request.
This was accomplished easily in httpd 2.2.21 with the following statements:
ProxyPassInterpolateEnv On
RewriteEngine On
RewriteCond %{HTTPS} =off
RewriteRule . - [E=protocol:http]
RewriteCond %{HTTPS} =on
RewriteRule . - [E=protocol:https]
ProxyPass /my_app/ ${protocol}://1.2.3.4/my_app/ interpolate
ProxyPassReverse /my_app/ ${protocol}://1.2.3.4/my_app/ interpolate
When I upgraded to httpd 2.2.25, the server now chokes on parsing the
URLs of the ProxyPass and ProxyPassReverse statements above.
Removing the ${protocol} from those URLs allows the server to start.
I am using the official binary distribution of httpd available from:
http://www.us.apache.org/dist//httpd/binaries/win32/httpd-2.2.25-win32-x86-openssl-0.9.8y.msi
I just downgraded to the last official win32 binary for 2.2.22 and I can
confirm that this problem does not exist there.
--
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]