you coluld solve the problem by using mod_rewrite and checking the referrer
for /foo/ ....

Manon

--On Donnerstag, 4. Juli 2002 16:32 Uhr +0100 PINTO Jose Silva <[EMAIL PROTECTED]> wrote:

(my apologises if this question isn't in the write place)

Why isn't apache adjusting the URL before forwarding the HTTP redirect
response to the client?

Problem description:
According to httpd.conf file below, a local request to
<http://frontend-server/foo/> is converted into a proxy request
<http://backend-server/>. Until here everything is ok!

In backend server I have a page that contains a reference to some image,
(e.g.
<img src="/image-dir/some-image.gif">).

I'm unable to see this image through a proxy request, because this
reference is being adjusted to
<http://frontend-server/image-dir/some-image.gif> instead of
<http://frontend-server/foo/image-dir/some-image.gif>.

# --- here is my httpd.conf file in frontend server ----
...
<VirtualHost _default_:*>
 ...
 ProxyPassReverse /foo/ http://backend-server/

 RewriteEngine On
 RewriteRule  ^/foo/(.*) http://backend-server/$1 [P]
 ...
</VirtualHost>
# ---

Thanks
Jose Pinto.





Reply via email to