I have two Amazon EC2 instances, call them A and B. A runs Apache and Tomcat. On server A, Apache only uses plain HTTP. Tomcat listens on 8443, but I use iptables to redirect requests on 443 to 8443 for Tomcat.
What I need to change is that I want to accept some 443 requests on A and forward them to server B. For example, requests on domain.com/app goes to B and requests on domain.com/service goes to A, which is redirected to Tomcat.
I never used reverse proxy, but I want to make sure this is possible in reverse proxy.
I don't know if I can ask another related issue here: I want to use one single SSL certificate for my domain, but in reality I have two Apache servers on A and B. Will that be possible in my planned setting?