We have an application server located at http://foo.bar .
It needs to be accessed via http:// wibble/foo using reverse proxying.
This I've managed, however there is stuff in http:// foo.bar which references from /
EG:
/images/blah.jpg
So it's trying to get http:// wibble/images/blah.jpg instead of
http:// wibble/foo/images/blah.jpg
Any idea how I can get it to insert the /foo prefix for anything referenced from / ?
mod_proxy never modifies the HTML.
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
If you are using nginx as your front-end server, you can use the HttpSubModule to perform the substitution. Essentially, nginx should proxy the request and perform the substitution on the returned text. I do believe though, that you can't use this if you have compression on the backend (so as long as you have compression on the front-end server you should be fine):
Essentially: Nginx -> proxy to apache -> return to Nginx -> perform substitution -> compress and serve
I presume a similar module exists for Apache and other servers.