Help with http proxy and not escaping characters

Help with http proxy and not escaping characters

am 26.08.2009 05:18:34 von Todd Nine

--000e0cd10626f906d0047202e7ef
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi all,
I'm using Apache 2.2.3 on CentOS 5.3 to proxy a connection to a splunk
installation. I use Apache for http redirection and handling the SSL
communication. Here is my /etc/rc.d/splunk.conf file.

ProxyRequests Off
ProxyPreserveHost On



Order deny,allow
Allow from all


RewriteMap unescape int:unescape
RewriteEngine On
RewriteRule ^/(.*)$ http://localhost:8080/${unescape:$1} [P]


ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/


Order allow,deny
Allow from all



Basically something is wrong with the HTML that's being returned. If I hit
the server directly via port 8080, a href in an anchor tag will have this
value.

/en-US/app/search/@go?s=AFF - Feed Online

However if I use the proxy connection, I get this in the href

/en-US/app/search/@go?s=AFF%20-%20Feed%20Online

How can I tell the http proxy to not escape data coming from the target
splunk python server on port 8080? I tried some rewrite rules according to
some examples to unescape urls coming in as a workaround, but I'm not
getting what I need as the escaped characters are getting passed to splunk.
Any help would be greatly appreciated.

Thanks,
Todd

--000e0cd10626f906d0047202e7ef
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,
=A0 I'm using Apache 2.2.3 on CentOS 5.3 to proxy a connecti=
on to a splunk installation.=A0 I use Apache for http redirection and handl=
ing the SSL communication.=A0 Here is my /etc/rc.d/splunk.conf file.
>ProxyRequests Off

ProxyPreserveHost On


<Proxy *>
Order deny,allow
Allo=
w from all
</Proxy>

RewriteMap unescape int:unescape
Rew=
riteEngine On
RewriteRule ^/(.*)$ scape:$1}">http://localhost:8080/${unescape:$1} [P]



ProxyPass / http://localhost:808=
0/

ProxyPassReverse / http://loca=
lhost:8080/


<Location />
      =A0 Order al=
low,deny
      =A0 Allow from all

</Location>


Basically something is wrong with the HTML tha=
t's being returned.=A0 If I hit the server directly via port 8080, a hr=
ef in an anchor tag will have this value.

x repTarget "> editable ">/en-US/app/search/@go?s=3DAFF - Feed Online


However if I use the proxy connection, I get this in the href

span>
odeAttr editGroup ">/en-US/app/search/@=
go?s=3DAFF%20-%20Feed%20Online


How can I tell the http proxy to not escape data coming from the target=
splunk python server on port 8080?=A0 I tried some rewrite rules according=
to some examples to unescape urls coming in as a workaround, but I'm n=
ot getting what I need as the escaped characters are getting passed to splu=
nk.=A0 Any help would be greatly appreciated.


Thanks,
Todd


--000e0cd10626f906d0047202e7ef--