I need to manipulate an incoming (and outgoing) url using Apache 2.2. Essentially, I need to be able to receive an incoming request with a url looking like www.domain.com/home/about/index.jsp and re-write it by inserting an extra path element like so -www.domain.com/extra/home/about/index.jsp (notice the new “extra” after the domain) then proxy the request on to Tomcat. When the response is received back from Tomcat, I need to rewrite the url back to its original form by removing the extra path information I had inserted on the way in (using proxy reverse?). Does anyone know how to accomplish this using Apache 2.2??
Thanks, Darren
|