Nginx + Uwsgi Error: unknown directive "uwsgi_pass"

Francis Daly francis at daoine.org
Wed Jun 26 20:50:10 UTC 2013


On Wed, Jun 26, 2013 at 10:55:24AM -0400, Josh Haimson 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 Daly        francis at daoine.org



More information about the nginx mailing list