# Re: Nginx + Uwsgi Error: unknown directive "uwsgi\_pass"

**URL:** <https://www.ruby-forum.com/t/re-nginx-uwsgi-error-unknown-directive-uwsgi-pass/235515>\
**Category:** NGINX\
**Created:** [June 26, 2013, 4:56pm UTC](https://www.ruby-forum.com/t/re-nginx-uwsgi-error-unknown-directive-uwsgi-pass/235515 "2013-06-26T16:56:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [June 26, 2013, 4:56pm UTC](https://www.ruby-forum.com/t/re-nginx-uwsgi-error-unknown-directive-uwsgi-pass/235515/1 "2013-06-26T16:56:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![qrc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/8797f3/32.png) [@qrc](https://www.ruby-forum.com/u/qrc)\
**Post date:** [June 26, 2013, 10:50pm UTC](https://www.ruby-forum.com/t/re-nginx-uwsgi-error-unknown-directive-uwsgi-pass/235515/2 "2013-06-26T22:50:57Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
