httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Eissing <stefan.eiss...@greenbytes.de>
Subject Re: [PATCH] mod_rewrite: support proxying via mod_proxy_http2
Date Thu, 12 May 2016 15:14:38 GMT
Hmm, can someone with more brains than me on mod_rewrite look at the first patch if we want
to add handling for h2: and h2c: uri schemes here or if there is a better way? Thanks.

-Stefan

> Am 12.05.2016 um 16:34 schrieb Evgeny Kotkov <evgeny.kotkov@visualsvn.com>:
> 
> I noticed that it's currently impossible to use mod_proxy_http2 in
> conjunction with mod_rewrite's [P] request proxying:
> 
>    RewriteEngine  On
>    RewriteRule  ^/foo  h2c://hostname/bar  [P]
> 
> mod_proxy_http2 registers on h2:// and h2c:// proxy URLs [1], however,
> mod_rewrite needs an update to handle these as absolute URIs.  Without
> that, the configuration above is going to produce incorrectly rewritten
> rewritten URLs, e.g.:
> 
>   http://www.example.org/h2c://hostname/bar
> 
> I attached the patch with a fix for this issue.  The second patch adds
> the corresponding tests to the mod_http2 testing framework.
> 
> [1] https://mail-archives.apache.org/mod_mbox/httpd-dev/201602.mbox/%3CCCC0EA0E-00CE-430D-A01C-022E7A2FFE16@greenbytes.de%3E
> 
> 
> Regards,
> Evgeny Kotkov
> <h2-proxy-rewrite-v1.patch.txt><h2-proxy-rewrite-test-v1.patch.txt>


Mime
View raw message