httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Jaeschke <jaesc...@cs.uni-kassel.de>
Subject [users@httpd] mod_proxy and unrequested URL-decoding
Date Fri, 12 Oct 2007 12:30:44 GMT
Hello,


I'll describe a small scenario to describe the problem:

I added the following lines


AllowEncodedSlashes On

ProxyPass / http://127.0.0.1:12345/
ProxyPassReverse / http://127.0.0.1:12345/


to my httpd.conf, restarted Apache and started

netcat -l -p 12345

and then

wget http://localhost/foo/black%26white


then netcat gives me as output


GET /foo/black&white HTTP/1.1
Host: 127.0.0.1:12345
User-Agent: Wget/1.10.2
Accept: */*
Max-Forwards: 10
X-Forwarded-For: 127.0.0.1
X-Forwarded-Host: localhost
Connection: Keep-Alive
[...]


the crucial line is

GET /foo/black&white HTTP/1.1

which is NOT what I want to get from the proxy, but rather

GET /foo/black%26white HTTP/1.1

i.e. the original, untouched URL!



Why does mod_proxy behave this way? Is there a way to change the behaviour? Do
workarounds exist?


Me and other people have asked several times on this mailing list for this
problem [1] but the feedback is very sparse. Some people live with the problem,
some have built workarounds. It would be very helpful to have some solution to it.


Best regards,
Robert Jaeschke


[1] e.g.
http://mail-archives.apache.org/mod_mbox/httpd-dev/200703.mbox/%3C20070308113336.GA8863@secure.grepular.com%3E
http://mail-archives.apache.org/mod_mbox/httpd-users/200609.mbox/%3cae2960c30609070943j50339fc1led7accd84c40039f@mail.gmail.com%3e
http://mail-archives.apache.org/mod_mbox/httpd-users/200608.mbox/%3c44F7127E.4090103@cs.uni-kassel.de%3e

-- 
Robert Jäschke                                Tel: +49-(0)561-804-6253
Universität Kassel                   E-Mail: jaeschke@cs.uni-kassel.de
Wilhelmshöher Allee 73            WWW: http://www.kde.cs.uni-kassel.de
34121 Kassel >>>>>>>>>>>>>>  http://www.bibsonomy.org
 <<<<<<<<<<<<<<<

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message