title: nginx: reverse proxy doesn't work
body: <p>I have two websites like:</p>
  
  <ul>
  <li><a href="http://example.com" rel="nofollow noreferrer">http://example.com</a></li>
  <li><a href="http://example.com:8080/mybackendapp" rel="nofollow noreferrer">http://example.com:8080/mybackendapp</a></li>
  </ul>
  
  <p>I want to set up a reverse proxy like:</p>
  
  <p><a href="http://example.com/mybackendapp" rel="nofollow noreferrer">http://example.com/mybackendapp</a> -> <a href="http://example.com:8080/mybackendapp" rel="nofollow noreferrer">http://example.com:8080/mybackendapp</a>
  <a href="http://example.com/mybackendapp/" rel="nofollow noreferrer">http://example.com/mybackendapp/</a> -> <a href="http://example.com:8080/mybackendapp" rel="nofollow noreferrer">http://example.com:8080/mybackendapp</a>
  <a href="http://example.com/mybackendapp/all_sub_url" rel="nofollow noreferrer">http://example.com/mybackendapp/all_sub_url</a> -> <a href="http://example.com:8080/mybackendapp" rel="nofollow noreferrer">http://example.com:8080/mybackendapp</a></p>
  
  <p>In the nginx.conf file, i set the config like :</p>
  
  <pre><code>location /mybackendapp/ {
      resolver 127.0.0.1;
      proxy_pass http://localhost:8080/mybackendapp;
  }
  </code></pre>
  
  <p>After modifying the file, i have restarted <code>nginx</code> service. But the reverse proxy don't work. When i try to open exemple.com/mybackendapp in browser. I have 404 error.</p>
  
  <p>Could you please help me solve this problem?</p>