I am planning on running both a Java web app (www.example.com) and a wordpress blog (www.example.com/blog) on the same domain.
Tomcat server serves my Java web app content and Apache server serves the WordPress content.
Originally, I was going to use a proxy server to route all blog request to the Apache server and all other requests to Tomcat (http://tomcat.apache.org/tomcat-8.0-doc/proxy-howto.html) (I'm not sure exactly how I would implement since I haven't done it yet).
However, I was recently made aware of AWS Application Load Balancer. Using the LB I can route requests to specific ports based on the url path and thus I can use it to route all www.example.com/blog requests to the Apache Server (on port 80) and all www.example.com requests to the Tomcat server (port 8080).
Is there any reason why I shouldn't do this? Since Application Load Balancer is a relatively new product, most of the documentation recommends the proxy server solution, but I see no reason why not to use the Application Load Balancer solution instead.
Thank you.