Nginx + Uwsgi Error: unknown directive "uwsgi_pass"
Josh Haimson
jhaimson at MIT.EDU
Wed Jun 26 14:55:24 UTC 2013
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 8:00 AM, <nginx-request at nginx.org> wrote:
>
> Date: Tue, 25 Jun 2013 22:02:44 +0800
> From: MCoder <shangtefa at gmail.com>
> To: nginx at nginx.org
> Subject: Re: Nginx + Uwsgi Error: unknown directive "uwsgi_pass"
> Message-ID:
> <
> CAAmqK6QG_Qpg_TPEGDXiF_kZobQCv26eyvhyGHAoEPZVAmSp3Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> you should use wsgi_pass, not uwsgi_pass
>
>
> 2013/6/25 Josh Haimson <jhaimson at mit.edu>
>
> > Hi all,
> >
> > I'm trying to configure nginx 1.1.19 on an ubuntu server with uwsgi. It
> > works fine on my ubuntu dev machine with the same exact version of nginx,
> > but for some reason I get the following error when I try to start nginx
> on
> > my production server:
> > Starting nginx: nginx: [emerg] unknown directive "uwsgi_pass" in
> > /etc/nginx/sites-enabled/nginx.conf:31
> > nginx: configuration file /etc/nginx/nginx.conf test failed
> >
> > I had seen this in an earlier post<
> http://mailman.nginx.org/pipermail/nginx/2010-October/023165.html>,
> > but the issue was that they were running an older version of nginx which
> > didn't support uwsgi natively. Does anyone know why I'd be getting this
> > error when I'm running a version that should support uwsgi natively?
> >
> > For reference, my nginx.conf file is below:
> >
> > Thanks,
> > Josh
> >
> > nginx.conf:
> >
> > upstream django {
> > server unix:/tmp/django.sock;
> > }
> >
> > server {
> > listen 8000;
> > server_name 127.0.0.1;
> > charset utf-8;
> > client_max_body_size 75M;
> >
> > location / {
> > uwsgi_pass django;
> > include /home/django-server/uwsgi_params;
> > }
> > }
> >
> >
> > --
> > Josh Haimson
> > Massachusetts Institute of Technology 2016
> > Departments of Computer Science and Biology
> > JHaimson at mit.edu | 516.640.6221
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >
>
--
Josh Haimson
Massachusetts Institute of Technology 2016
Departments of Computer Science and Biology
JHaimson at mit.edu | 516.640.6221
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130626/70a3034d/attachment.html>
More information about the nginx
mailing list