<div dir="ltr"><div style>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'.</div>

<div style><br></div><div style>The odd thing is that 'uwsgi_pass' works perfectly on a different machine running the same OS and the same version of nginx.</div><div style><br></div><div style>Any ideas on why this might be?</div>

<div style><br></div><div style>Thanks,</div><div style>Josh</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 8:00 AM,  <span dir="ltr"><<a href="mailto:nginx-request@nginx.org" target="_blank">nginx-request@nginx.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Date: Tue, 25 Jun 2013 22:02:44 +0800<br>
From: MCoder <<a href="mailto:shangtefa@gmail.com">shangtefa@gmail.com</a>><br>
To: <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
Subject: Re: Nginx + Uwsgi Error: unknown directive "uwsgi_pass"<br>
Message-ID:<br>
        <<a href="mailto:CAAmqK6QG_Qpg_TPEGDXiF_kZobQCv26eyvhyGHAoEPZVAmSp3Q@mail.gmail.com">CAAmqK6QG_Qpg_TPEGDXiF_kZobQCv26eyvhyGHAoEPZVAmSp3Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
you should use wsgi_pass, not uwsgi_pass<br>
<br>
<br>
2013/6/25 Josh Haimson <<a href="mailto:jhaimson@mit.edu">jhaimson@mit.edu</a>><br>
<br>
> Hi all,<br>
><br>
> I'm trying to configure nginx 1.1.19 on an ubuntu server with uwsgi.  It<br>
> works fine on my ubuntu dev machine with the same exact version of nginx,<br>
> but for some reason I get the following error when I try to start nginx on<br>
> my production server:<br>
> Starting nginx: nginx: [emerg] unknown directive "uwsgi_pass" in<br>
> /etc/nginx/sites-enabled/nginx.conf:31<br>
> nginx: configuration file /etc/nginx/nginx.conf test failed<br>
><br>
> I had seen this in an earlier post<<a href="http://mailman.nginx.org/pipermail/nginx/2010-October/023165.html" target="_blank">http://mailman.nginx.org/pipermail/nginx/2010-October/023165.html</a>>,<br>
> but the issue was that they were running an older version of nginx which<br>
> didn't support uwsgi natively.  Does anyone know why I'd be getting this<br>
> error when I'm running a version that should support uwsgi natively?<br>
><br>
> For reference, my nginx.conf file is below:<br>
><br>
> Thanks,<br>
> Josh<br>
><br>
> nginx.conf:<br>
><br>
> upstream django {<br>
>     server unix:/tmp/django.sock;<br>
>     }<br>
><br>
> server {<br>
>     listen      8000;<br>
>     server_name 127.0.0.1;<br>
>     charset     utf-8;<br>
>     client_max_body_size 75M;<br>
><br>
>     location / {<br>
>         uwsgi_pass  django;<br>
>         include     /home/django-server/uwsgi_params;<br>
>         }<br>
>     }<br>
><br>
><br>
> --<br>
> Josh Haimson<br>
> Massachusetts Institute of Technology 2016<br>
> Departments of Computer Science and Biology<br>
> <a href="mailto:JHaimson@mit.edu">JHaimson@mit.edu</a> | 516.640.6221<br>
><br>
> _______________________________________________<br>
> nginx mailing list<br>
> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
><br></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Josh Haimson<br>Massachusetts Institute of Technology 2016<div>Departments of Computer Science and Biology</div><div><div><a href="mailto:JHaimson@mit.edu" target="_blank">JHaimson@mit.edu</a> | 516.640.6221</div>

</div></div>
</div></div>