Unknown directive "uwsgi_pass"

Hello,

I’m new to nginx. We are migrating from Apache to Nginx and I’m having
this problem when I tried to configure Nginx, uwsgi and django.

[emerg]: unknown directive “uwsgi_pass” in /etc/nginx/nginx.conf:156
configuration file /etc/nginx/nginx.conf test failed

I’m using nginx-0.7.67-1.fc13.x86_64 on Fedora. I have uwsgi installed
and running.

Any insight on what I did wrong?

Thanks in advance.

Yan Huang

On Wed, Oct 20, 2010 at 03:27:28PM -0400, Yan Huang wrote:

Hi there,

I’m new to nginx. We are migrating from Apache to Nginx and I’m having
this problem when I tried to configure Nginx, uwsgi and django.

[emerg]: unknown directive “uwsgi_pass” in /etc/nginx/nginx.conf:156
configuration file /etc/nginx/nginx.conf test failed

That strongly suggests that the nginx you are using does not include
the uwsgi module.

I’m using nginx-0.7.67-1.fc13.x86_64 on Fedora. I have uwsgi installed
and running.

The srpm at

ftp://mirror.switch.ch/pool/2/mirror/fedora/linux/updates/13/SRPMS/nginx-0.7.67-1.fc13.src.rpm

doesn’t mention uwsgi at all, as far as I can see.

http://wiki.nginx.org/NginxHttpUwsgiModule

has some references at the end. One says that the uwsgi module was
included in nginx from 0.8.40. It describes how to add it to an 0.7
series build.

Another is from April and is titled “Running Django with Nginx and
uWSGI”. It might be interesting.

Any insight on what I did wrong?

Just using an nginx which doesn’t speak the uwsgi protocol.

You’ll have to find-or-build an 0.7 one with the extra module included,
or else find (or build) a recent 0.8 version, which will include uwsgi
by default.

Good luck with it,

f

Francis D. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs