On Sep 30, 2009, at 12:32 , Alexander Müller wrote:


Hi,

we are having the following RewriteRule entry configured

 RewriteRule ^/(.*)$ https://HOSTNAME/$1 [P]

which generally seems to work, all incoming requests are forwarded to the indicated machine, not as redirect but utilising mod_proxy.

The problem starts to occur when a URL contains a question mark

 /SOMEPATH?/ANOTHERPATH

these URLs do not seem to be proxied through but are actually sent as regular HTTP redirect to the client. I noticed that by separating the question mark - like /SOMEPATH/?/ANOTHERPATH - it doesn't show this behaviour but again works like mod_proxy.

Would anyone have an explanation for this behaviour?

The first thing that comes to mind is that you have a Redirect header being sent by the back-end. Make sure that you have a ProxyPassReverse that matches the initial Proxy request so that redirects are intercepted and fixed up.

In this case, SOMEPATH? is probably getting redirected to SOMEPATH/ index.html?/ANOTHERPATH, for example.

--
Apache: Nuts To Bolts - Two Day Training @ ApacheCon.
http://us.apachecon.com/c/acus2009/sessions/363
---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to