Welcome! Log In Create A New Profile

Advanced

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

June 24, 2013 05:30PM
Are you sure it's got uwsgi built in? If it's from a different repo /
not up to date, then it may well not.

nginx -V

should answer that.
On Mon, 2013-06-24 at 17:25 -0400, Josh Haimson wrote:
> 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, 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@mit.edu | 516.640.6221
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

--
Steve Holdoway BSc(Hons) MNZCS
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx + Uwsgi Error: unknown directive "uwsgi_pass"

Josh Haimson June 24, 2013 05:28PM

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

GreenGecko June 24, 2013 05:30PM

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

MCoder June 25, 2013 10:04AM

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

Francis Daly June 26, 2013 04:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 177
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready