<div dir="ltr"><div>Maxim,<br><br></div>Thank you for your reply.<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 9, 2014 at 10:03 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[snip]<br><div><div><div class="h5">
<br>
</div></div>If you are able to connect to localhost:9090 with your browser,<br>
you are likely using native HTTP support in your uWSGI server.<br></div></blockquote><div><br></div><div>Yes, I am starting the uwsgi process like this, using the --http flag:<br><br>uwsgi --http :9090 --wsgi-file foobar.py --master --processes 4 --threads 2<br>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
The "uwsgi_pass" directive assumes uwsgi protocol though, which is<br>
different.<br>
<br>
You should either reconfigure uWSGI server to work via uwsgi, or<br></div></blockquote><div><br></div><div>Ah, I see, I should use the --socket option instead, like this:<br><br>uwsgi --socket <a href="http://127.0.0.1:9090">127.0.0.1:9090</a> --wsgi-file foobar.py --master --processes 4 --threads 2<br>
<br></div><div>Thank you for clarifying that; it *is* in the uwsgi docs I quoted earlier, but it is a subtle point under the "quickstart" section, and I had missed it.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
instruct nginx to talk via HTTP (i.e., use "proxy_pass" instead of<br>
"uwsgi_pass").<br></div></blockquote><div><br></div><div>I see: I could use "proxy_pass" and keep --http when I start uwsgi.<br><br></div><div>Thank you, that was very helpful!<br></div></div></div></div>