Re: URL is decoded when it should be forwarded as is

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* 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@xxxxxxxxx> 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@xxxxxxxxx> wrote:
>>
>> On Sun, Aug 17, 2014 at 7:59 AM, Vadim Blumkin <vadim.blumkin@xxxxxxxxx>
>> 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@xxxxxxxxx
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>



-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux