Python on Nginx

etrader nginx-forum at nginx.us
Tue Oct 11 14:11:14 UTC 2011


The instruction given on http://wiki.nginx.org/PythonFlup is to install
nginx supporting python. But I have a working Nginx with php-fpm
supporting PHP. Now I want to add support of python too. Thus, my config
is slightly different. I successfully installed Python 2.6, Django and
python-flup. Everything went good, but python does not work on web (when
visiting test.py, it downloads the file instead of running the script).

How should modify the nginx config to support python?

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



More information about the nginx mailing list