mod_proxy_html not working when using carriage returns

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

 



Hello to everyone,

I´m having some troubles while trying to make mod_proxy_html working in Apache. Here is the configuration I am using:

- mod_proxy_html  3.1.2
- Apache  2.2.3

I'm using Apache as a proxy to a external webserver (10.10.10.10), so every request any client would make to my local server(192.168.10.10) will be redirected through mod_proxy_html. As an example, any request to
http://192.168.10.10/example/* 

Will be redirected to 
https://10.10.10.10/example/* 

(all IPs shown are fake).

To achieve this behavior, I used this configuration at my local webserver:
ProxyPass       /example/  https://10.10.10.10/example/
ProxyPassReverse       /example/  https://10.10.10.10/example/


The problem I see is that mod_proxy_html can't convert urls when there is a carry return inside it. For example, here there are two <a> links:


<a target="Download1" title="Download Test1" href="" href="https://10.10.10.10/example/working_OK.html">https://10.10.10.10/example/working_OK.html"</a>

<a target="Download2" title="Download Test2" href="">
https://10.10.10.10/example/not_working.html"</a>


The second one has a CR right after href definition, and as a result mod_proxy_html can't convert it. I would like to ask if someone knows a way to let mod_proxy_html understand how to interpret that CR, or just a way to remove that CR.


Thanks in advance. 

[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