# Uwsgi in osx

**URL:** <https://www.ruby-forum.com/t/uwsgi-in-osx/207952>\
**Category:** NGINX\
**Created:** [June 7, 2011, 12:05am UTC](https://www.ruby-forum.com/t/uwsgi-in-osx/207952 "2011-06-07T00:05:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [June 7, 2011, 12:05am UTC](https://www.ruby-forum.com/t/uwsgi-in-osx/207952/1 "2011-06-07T00:05:42Z")

</div>

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:

> **[Uwsgi in osx](https://forum.nginx.org/read.php?2,204460,204460#msg-204460)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![jyr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@jyr](https://www.ruby-forum.com/u/jyr)\
**Post date:** [June 7, 2011, 12:33am UTC](https://www.ruby-forum.com/t/uwsgi-in-osx/207952/2 "2011-06-07T00:33:27Z")

</div>

Hello!

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

> ```
> listen 80;
> 
> ```
> 
> Any suggestions?

```
server {
    ...

    location / {
        uwsgi_pass pythoncocoa;
    }
}

```

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

Note “context: location, if in location”.

Maxim D.

---

<div class="post-metadata">

**Author:** ![jyr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@jyr](https://www.ruby-forum.com/u/jyr)\
**Post date:** [June 7, 2011, 1:24am UTC](https://www.ruby-forum.com/t/uwsgi-in-osx/207952/3 "2011-06-07T01:24:26Z")

</div>

Thanks a lot

Posted at Nginx Forum:

> **[Re: Uwsgi in osx](https://forum.nginx.org/read.php?2,204460,204486#msg-204486)**
>
> 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...
