<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-03-10 12:20 GMT-06:00 Amelia Ireland <span dir="ltr"><<a href="mailto:aireland@lbl.gov" target="_blank">aireland@lbl.gov</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The nginx documentation has plenty of information on how to serve static files directly:<div><br></div><div><a href="https://www.nginx.com/resources/admin-guide/serving-static-content/" target="_blank">https://www.nginx.com/resources/admin-guide/serving-static-content/</a><br></div></div><div><div><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div><div>I am currently studing them but am not quite fully understanding how things work. Specifically I don't understand how the vairables below -- such as http_host, $remote_addr, etc -- get defined.<br><br><pre class="">server {
  location / {
      proxy_set_header Host $http_host;
      proxy_set_header X-Forwarded-Host $http_host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_pass <a href="http://localhost:5000">http://localhost:5000</a>;
    }
}<br></pre></div></div><br></div></div>