<div dir="ltr">I've installed nginx via apt, using the nginx stable pkg as described here: <a href="http://nginx.org/en/linux_packages.html#stable">http://nginx.org/en/linux_packages.html#stable</a><div><br></div><div>
It works perfectly for serving static files using the default configuration.</div><div><br></div><div>Next, I installed uwsgi from source, as described here: <a href="https://pypi.python.org/pypi/uWSGI/1.2.3">https://pypi.python.org/pypi/uWSGI/1.2.3</a></div>
<div><br></div><div>When I do the steps in the python quickstart guide -- <a href="http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html">http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html</a> -- and open my browser to localhost:9090, everything works as expected.</div>
<div><br></div><div>When I change the nginx config file to use uwsgi_pass to localhost:9090 as described here -- <a href="http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html#putting-behind-a-full-webserver">http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html#putting-behind-a-full-webserver</a> -- however, I get time out errors:</div>
<div><br></div><div>> upstream timed out (110: Connection timed out) while reading response header from upstream</div><div><br></div><div>It is as though nginx is *not* passing those requests to the uwsgi process (which is still running).</div>
<div><br></div><div>Here is the content of server{ } inside the nginx config file:</div><div><br></div><div><div>        location / {</div><div>            include uwsgi_params;<br></div><div>            uwsgi_pass localhost:9090;</div>
<div>        }</div></div><div><br></div><div>Any ideas on what the problem might be?</div></div>