title: Rancher server behind Nginx reverse proxy
body: <p>I have a Nginx on host, a Rancher server in <code>Docker</code> container. I want to use <code>Nginx</code> reverse proxy Rancher:</p>
  
  <p>Here is my Nginx config:</p>
  
  <pre><code> map $http_upgrade $connection_upgrade {
          default Upgrade;
          ''      close;
      }
  
      location /rancher {
          proxy_set_header Host $host;
          proxy_set_header X-Forwarded-Proto $scheme;
          proxy_set_header X-Forwarded-Port $server_port;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_pass http://127.0.0.1:8080;
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection $connection_upgrade;
      }
  </code></pre>
  
  <p>But when I try to access <code>https://mydomain/rancher</code> , static files can not be loaded. I want to know:</p>
  
  <ul>
  <li>Does it common to run Rancher server behind a <code>Nginx</code> proxy?</li>
  <li>How can I make my config work?</li>
  </ul>