Uwsgi in osx

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?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,204460,204460#msg-204460

Hello!

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

listen       80;

Any suggestions?

server {
    ...

    location / {
        uwsgi_pass  pythoncocoa;
    }
}

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

Maxim D.

Thanks a lot

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,204460,204486#msg-204486

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs