title: Caddy server:multiple proxies for same site
body: <p>I'm using Caddy to revers proxy some sites on a DigitalOcean Ubuntu droplet.</p>
  
  <p>This is my Caddy file, pretty simple :upside_down: </p>
  
  <pre><code>my-site.com {
    # projects
    proxy /projects/some-project localhost:8998
  
    # main site
    proxy / localhost:9000
  }
  
  other-site.com {
    proxy / localhost:8999 # main site
  }
  </code></pre>
  
  <p><code>my-site.com</code> and <code>other-site.com</code> are working just fine.</p>
  
  <p>But I'm getting a 404 when trying to access <code>my-site.com/projects/some-project</code>. I've double checked and <code>localhost:8998</code> works properly on DO. </p>
  
  <p><code>my-site.com</code> is a <a href="https://harpjs.com/" rel="nofollow">Harp.js</a> app, it is catching all the 404 how it is expected, but <code>/projects/some-project</code> is showing the Caddy default 404 message.</p>
  
  <p>Should I work like I expect? Am I missing something?</p>
  
  <p><em>The question is also posted on the <a href="https://forum.caddyserver.com/t/multiple-proxies-for-same-site/667" rel="nofollow">Caddy forum</a>.</em></p>