title: Caddyfile Subdomain with Multiple Proxies
body: <p>i am new to using caddy and i am trying to figure out how to create a subdomain that can proxy to different endpoints based on path.</p>
  
  <p>for example for a subdomain called <code>pets</code> in the domain <code>my-website.com</code>. i want to route the path <code>/cats</code> to <code>serviceA</code> and <code>/dogs</code> to <code>serviceB</code>.</p>
  
  <p>i have tried this configuration:</p>
  
  <pre><code>pets.my-website.com {
      proxy /cats http://serviceA:80
      proxy /dogs http://serviceB:80
  }
  </code></pre>
  
  <p>but this does not seem to work.</p>
  
  <p>can anyone see what i am doing wrong?</p>