Welcome! Log In Create A New Profile

Advanced

Re: Uwsgi in osx

Maxim Dounin
June 06, 2011 06:34PM
Hello!

On Mon, Jun 06, 2011 at 06:05:09PM -0400, jyr wrote:

> I try to configure uwsgi for python, but return the next error
> "uwsgi_pass" directive is not allowed here in
> /Applications/MNPP/conf/nginx/sites-enabled/djangocms.local:12
>
> upstream pythoncocoa {
> #server unix:/Applications/MNPP/tmp/uwsgi.sock;
> server 127.0.0.1:9001;
> }
>
> server {
> listen 80;
> server_name django.local;
> root /Applications/MNPP/htdocs/pythoncocoa;
>
> include /Applications/MNPP/conf/nginx/uwsgi_params;
> uwsgi_pass pythoncocoa;
>
> access_log /Applications/MNPP/logs/nginx/django.local.access.log;
> error_log /Applications/MNPP/logs/nginx/django.local.error.log;
>
> }
>
> Any suggestions?

server {
...

location / {
uwsgi_pass pythoncocoa;
}
}

http://wiki.nginx.org/HttpUwsgiModule#uwsgi_pass
Note "context: location, if in location".

Maxim Dounin

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

Uwsgi in osx

jyr June 06, 2011 06:05PM

Re: Uwsgi in osx

Maxim Dounin June 06, 2011 06:34PM

Re: Uwsgi in osx

jyr June 06, 2011 07:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready