Re: Nginx + Uwsgi Error: unknown directive "uwsgi_pass"

Thanks for the help! Unfortunately, changing uwsgi_pass to wsgi_pass
did
not solve the problem. Now I just get an error saying there’s an
unknown
directive ‘wsgi_pass’ instead of an unknown directive ‘uwsgi_pass’.

The odd thing is that ‘uwsgi_pass’ works perfectly on a different
machine
running the same OS and the same version of nginx.

Any ideas on why this might be?

Thanks,
Josh

On Wed, Jun 26, 2013 at 10:55:24AM -0400, Josh H. wrote:

Hi there,

The odd thing is that ‘uwsgi_pass’ works perfectly on a different machine
running the same OS and the same version of nginx.

Which file on the filesystem is the “works perfectly” nginx binary?

/usr/sbin/nginx, /usr/local/sbin/nginx, /usr/local/nginx/sbin/nginx,
something else?

What is the output of that “nginx -V”?

Which file on the filesystem is the “unknown directive” nginx binary?

What is the output of that “nginx -V”?

Any ideas on why this might be?

The nginx you run on the second system was not built the same way as
the one on the first system.

There aren’t many other ways you can get the output that you report.

(Might you have installed the distribution “nginx” on one machine, and
“nginx-full” on the other, for example? Or did you build the binary
yourself?)

f

Francis D. [email protected]