title: Redirect URL path to forward to tomcat servlet using Apache/mod_proxy
body: <p>I currently have a tomcat servlet 1 running under the ROOT:</p>
  
  <p>api1.myhost.com:8080/</p>
  
  <p>I'm using mod_proxy and simply forwarding all requests from
  api1.myhost.com to this instance. This is working as of today.</p>
  
  <p>I now have installed a second servlet 2 which runs under the same instance of tomcat (same IP address):</p>
  
  <p>www.myhost.com:8080/servlet2</p>
  
  <p>I want all requests to a new URL api2 to go to that second servlet such that:</p>
  
  <p><strong>api2</strong>.myhost.com</p>
  
  <p>now gets forwarded to the second servlet instance.</p>
  
  <p>I've created an A record such that api2.myhost.com points to my server IP. How do you make api2.myhost.com forward to www.myhost.com:8080/servlet2  ?</p>