httpd-users mailing list archives

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

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

I added the following lines

AllowEncodedSlashes On

ProxyPass /
ProxyPassReverse /

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
User-Agent: Wget/1.10.2
Accept: */*
Max-Forwards: 10
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.

Robert Jäschke                                Tel: +49-(0)561-804-6253
Universität Kassel                   E-Mail:
Wilhelmshöher Allee 73            WWW:
34121 Kassel >>>>>>>>>>>>>>

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message