Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just installed python 2.7.1, it works fine from the command line.

I have php running fine on my nginx webserver. it uses php-fpm.

how do i get python working on nginx?


share|improve this question
You'd better specify what python software are you planning to run, most python web stuff has specific instructions about running it with certain webservers. – halp Jan 19 '11 at 18:52
up vote 2 down vote accepted

There's no direct module for running python on nginx (there's a wsgi module but it's VERY buggy).

Your best option is to either use mongrel or passenger to run your python code over and use nginx as a proxy server in front of your application.

share|improve this answer
Or use gunicorn behind nginx as proxy. – Graham Dumpleton Jan 19 '11 at 22:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.