Uwsgi in osx

Maxim Dounin mdounin at mdounin.ru
Tue Jun 7 02:33:11 MSD 2011


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



More information about the nginx mailing list