httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] URL is decoded when it should be forwarded as is
Date Sun, 17 Aug 2014 13:46:22 GMT
* You would need to capture more carefully in the condition (because
it is the full request line w/ e.g. GET /.... HTTP/1.1)
* You need to use %1 in the substitution

On Sun, Aug 17, 2014 at 9:44 AM, Vadim Blumkin <vadim.blumkin@gmail.com> wrote:
> Thanks, Eric
>
> Do you mean something like this ?
>
> RewriteCond  %{THE_REQUEST}  ^/filter/(.*)
> RewriteRule  ^/filter/(.*)$ http://127.0.0.1:7001/$1 [R]
>
> Thanks,
> Vadim
>
> On Sun, Aug 17, 2014 at 3:19 PM, Eric Covener <covener@gmail.com> wrote:
>>
>> On Sun, Aug 17, 2014 at 7:59 AM, Vadim Blumkin <vadim.blumkin@gmail.com>
>> wrote:
>> > But instead of sending it as is , apache is doing decoding and sending
>> > it
>> > like this:
>>
>> there are two places it can happen, mod_rewrite and mod_proxy.
>>
>> In mod_rewrite, the thing you're comparing against has been decoded.
>> If you want it in the users original form, use a condition and capture
>> against %{THE_REQUEST}
>>
>> in mod_proxy, see the "canon" flag which I don't think you can set via
>> mod_rewrite. But it also may be skipped when you come in via rewrite.
>>
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message