title: Creating NGINX Server Proxy bypasses all the sub folders and assets
body: <p>I am trying to create an NGINX Proxy to another domain. The subfolder proxies perfectly. But, all the folders inside that subfolder gives a 404 error. </p>
  
  <p>So, I have a domain xyz.com/website that needs to pull from example.com/website. Now the /website at xyz.com pulls the index.html from example.com and renders perfectly. But, the issue lies with the sub folder /assets/1.jpg . So, all the files under /assets folder under /website throws a 404 error</p>
  
  <p>So technically xyz.com/website --> Works</p>
  
  <p>But, xyz.com/website/assets/1.jpg --> Throws a 404 error</p>
  
  <p>Following is the proxy_pass directive that I am using at xyz.com</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>location  ~/website {
    proxy_pass https://example.com/;
    proxy_redirect redirect replacement;
   }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Can someone please help me and let me know what I am doing wrong?</p>
  
  <p>Thanks in advance for your answer.</p>