Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

thanks

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.