<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    You should use one of these (or perhaps both, second one is for CGI
    I think):<br>
    <br>
       uwsgi_param  UWSGI_SCHEME       $scheme;<br>
       uwsgi_param  HTTPS              $https if_not_empty;<br>
    <br>
    As far as I remember, it's been discussed on the list and it's not
    included by default because it might break legacy applications
    (whatever that means).<br>
    <br>
    <div class="moz-cite-prefix">On 17.04.2014 17:15, est wrote:<br>
    </div>
    <blockquote
cite="mid:CA+=kK2+ZY3WFt4hjooDAmcwo8JBsCeLk5CXc1AsGOqh0ZCCWsg@mail.gmail.com"
      type="cite">
      <div dir="ltr">just found this question
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
            href="http://stackoverflow.com/a/7339716/41948">http://stackoverflow.com/a/7339716/41948</a><br>
        </div>
        <div><br>
        </div>
        <div>looks like nginx config missing one thing:</div>
        <div><br>
        </div>
        <div>
          <pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(238,238,238);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;overflow:auto;width:auto;max-height:600px;word-wrap:normal;color:rgb(0,0,0);line-height:18px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;white-space:inherit">uwsgi_param UWSGI_SCHEME $scheme;
</code></pre>
        </div>
        <div><code
            style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida
            Console','Liberation Mono','DejaVu Sans Mono','Bitstream
            Vera Sans Mono','Courier
            New',monospace,serif;white-space:inherit">however </code><a
            moz-do-not-send="true"
            href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html">http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html</a></div>
        <div><br>
        </div>
        <div>the uwsgi_params does not include this line.</div>
        <div><br>
        </div>
        <div>Is this a bug or a feature?</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
uWSGI mailing list
<a class="moz-txt-link-abbreviated" href="mailto:uWSGI@lists.unbit.it">uWSGI@lists.unbit.it</a>
<a class="moz-txt-link-freetext" href="http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi">http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>