Welcome! Log In Create A New Profile

Advanced

Re: Time out errors using uwsgi with ngnix on debian 7 (wheezy)

Denis Papathanasiou
January 09, 2014 12:10PM
Maxim,

Thank you for your reply.

On Thu, Jan 9, 2014 at 10:03 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> [snip]
>
> If you are able to connect to localhost:9090 with your browser,
> you are likely using native HTTP support in your uWSGI server.
>

Yes, I am starting the uwsgi process like this, using the --http flag:

uwsgi --http :9090 --wsgi-file foobar.py --master --processes 4 --threads 2


> The "uwsgi_pass" directive assumes uwsgi protocol though, which is
> different.
>
> You should either reconfigure uWSGI server to work via uwsgi, or
>

Ah, I see, I should use the --socket option instead, like this:

uwsgi --socket 127.0.0.1:9090 --wsgi-file foobar.py --master --processes 4
--threads 2

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.


> instruct nginx to talk via HTTP (i.e., use "proxy_pass" instead of
> "uwsgi_pass").
>

I see: I could use "proxy_pass" and keep --http when I start uwsgi.

Thank you, that was very helpful!
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Time out errors using uwsgi with ngnix on debian 7 (wheezy)

Denis Papathanasiou January 08, 2014 08:16PM

Re: Time out errors using uwsgi with ngnix on debian 7 (wheezy)

Maxim Dounin January 09, 2014 10:04AM

Re: Time out errors using uwsgi with ngnix on debian 7 (wheezy)

Denis Papathanasiou January 09, 2014 12:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready