# Python in Nginx // windows 2008

**URL:** <https://www.ruby-forum.com/t/python-in-nginx-windows-2008/221981>\
**Category:** NGINX\
**Created:** [August 8, 2012, 2:23am UTC](https://www.ruby-forum.com/t/python-in-nginx-windows-2008/221981 "2012-08-08T02:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 8, 2012, 2:23am UTC](https://www.ruby-forum.com/t/python-in-nginx-windows-2008/221981/1 "2012-08-08T02:23:31Z")

</div>

I need to run python in Nginx. What do I need to install and configure?  
I have windows 2008.

Posted at Nginx Forum:

> **[Python in Nginx // windows 2008](https://forum.nginx.org/read.php?2,229419,229419#msg-229419)**
>
> I need to run python in Nginx. What do I need to install and configure? I have windows 2008.

---

<div class="post-metadata">

**Author:** ![borgita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d9b06d/32.png) [@borgita](https://www.ruby-forum.com/u/borgita)\
**Post date:** [August 8, 2012, 11:05pm UTC](https://www.ruby-forum.com/t/python-in-nginx-windows-2008/221981/2 "2012-08-08T23:05:29Z")

</div>

On 08/08/2012 02:22 AM, borgita wrote:

> I need to run python in Nginx. What do I need to install and configure?  
> I have windows 2008.
> 
> Posted at Nginx Forum:  
> [Python in Nginx // windows 2008](http://forum.nginx.org/read.php?2,229419,229419#msg-229419)

Python can be run in multiple ways on an nginx server.

Do you want pythan code as a CGI script, then just look on how to run  
CGO on nginx

or do you wnat to run it via fast-cgi then you could look at flup  
[http://wiki.nginx.org/PythonFlup](http://wiki.nginx.org/PythonFlup)

or do you ant python WSGI code, then you could for example at uwsgi

[http://projects.unbit.it/uwsgi/](http://projects.unbit.it/uwsgi/)  
or at gunicorn [http://gunicorn.org/](http://gunicorn.org/)

See also:

> <https://serverfault.com/questions/436756/recommended-nginx-wsgi-configurations>

---

<div class="post-metadata">

**Author:** ![borgita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d9b06d/32.png) [@borgita](https://www.ruby-forum.com/u/borgita)\
**Post date:** [August 8, 2012, 11:10pm UTC](https://www.ruby-forum.com/t/python-in-nginx-windows-2008/221981/3 "2012-08-08T23:10:45Z")

</div>

Apologies,

I overlooked the ‘windows 2008 part’.

On 08/08/2012 11:04 PM, Gelonida N wrote:

> Do you want pythan code as a CGI script, then just look on how to run  
> CGI on nginx
> 
> or do you wnat to run it via fast-cgi then you could look at flup  
> [http://wiki.nginx.org/PythonFlup](http://wiki.nginx.org/PythonFlup)  
> PythonFlup should be working on windows.

> or do you ant python WSGI code, then you could for example at uwsgi
> 
> [The uWSGI project — uWSGI 2.0 documentation](http://projects.unbit.it/uwsgi/)  
> nginx definitely does NOT run on windows so you can skip it.

> or at gunicorn [http://gunicorn.org/](http://gunicorn.org/)  
> I think gunicorn is also Unix only
