I have an application running under tomcat 6. In front of it I have an apache server which is forwarding all requests. That is, the user "talks" to the apache and not to tomcat. For some reasons the it is requested the following: when the apache server receives a request of the form
http://www.mydomain.com/myApp
then it has to be forwarded to http://www.mydomain.com/$PREFIX/myApp
where $PREFIX is a POST parameter. This $PREFIX parameter is also available as a COOKIE and as a extra header. I didn't find a way using mod_rewrite for reading post parameters/cookies/headers.
Is this possible at all? If not, should I use another apache module/connector?
Thanks in advance.
Luis