Reverse proxy for Tomcat
- by aauser
I got following infrastructure.
Site A - Tomcat. Can be access by url www.sitea.com
Site B - php backend( or probably it will be just static html pages ). Can't be access directly.
I want to forward all request comming to www.sitea.com/doforward/... (Tomcat) to php backend. And all other requests with other urls should be handled by Tomcat itself.
I know i can add another web server in front of tomcat, for example nginx, and based on url
forward request to php backed or tomcat backend. But i want tomcat to serve requests itself and forward it to another backend.
Probably there are ready implementations for servlet containers like mod_proxy for apache.
Thank you