can i write a web-App in Tomcat and set it in deployment to act as a proxy WebApp, meaning it will receive the request from some web browser for intermediate processing and further forwarding?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Without claiming that this is the definitive answer: I assume it is not possible.
Usually, you map a path prefix to a web application.
I.e. http://your.site/app will map to a single application.
The web server (tomcat resp. frontent server) will see a GET (e.g.) request for /app (without the host part).
The request line looks like this:
With a proxy, things are different. The whole URL is submitted to the proxy server and a request line would look like:
I would assume there is not way to handle that with Tomcat, as it is simply not made for that.
There might be an option to use a frontend proxy (apache) and to rewrite URLs before passing them to the app, but that sounds rather odd.