proxypass-reverse question for redirects

Giganews Newsgroups
Subject: proxypass-reverse question for redirects
Posted by:  john (joep…@linux.nl)
Date: Tue, 03 May 2011

Hi, somebody any idea how to do the following:
I have a vmware image running some stupid non-apache webserver on
192.168.1.100. From outside I have written a proxypass and proxypassreverse
to refer to it as follows:
proxypass /foo http://192.168.1.100
proxypassreverse /foo http://192.168.1.100.
A request to http://myserver/foo works. However this server will proceed
with a redirect reply
to /intranet for the next page. This results on the outside to a request
for:
http://myserver/intranet which doesn't exist of course. The same with
multiple other pages and links. Unfortunately it's not easy to move the foo
server pages to something like http://fooserver/foopages/, because this
image is using an aolserver with tcl :-(
Is there a way to handle all redirects from this internal server to a
correct request?Some nasty rewriterule or whatever.
John

Replies