Reverse proxy for Tomcat
        Posted  
        
            by aauser
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by aauser
        
        
        
        Published on 2010-06-09T13:45:17Z
        Indexed on 
            2010/06/10
            13:42 UTC
        
        
        Read the original article
        Hit count: 302
        
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
© Stack Overflow or respective owner