views:

478

answers:

2

I generally run web apps behind nginx with FastCGI. I wanted to experiment with mod_wsgi, however it seems quite out of date. The author mentions that it worked on version 0.5.34, however I'm running 0.7.62 now.

The wiki article warns of compilation problems with the module and later versions of nginx. Has anybody used mod_wsgi with more recent versions of nginx? Is there another module out there that I'm missing?

+1  A: 

I'm setting this up too, and I'm just curious - why not reverse-proxy nginx to a multi-threaded paste wsgi process?

thethinman
This is basically what I've been doing, though not with paste. I was more curious as to the state of mod_wsgi with nginx, but I now understand there are more technical limitations given nginx's async/event-driven model.
Ryan Duffield
Good to know - thanks.
thethinman
+2  A: 

For nginx other options are FASTCGI, Phusion Passenger or proxying. You could also just use the original mod_wsgi with Apache instead, fronting it with nginx for static file handling if necessary.

For nginx/mod_wsgi ensure you read:

http://blog.dscpl.com.au/2009/05/blocking-requests-and-nginx-version-of.html

Graham Dumpleton
Definitely won't be using Apache, but thanks. FastCGI has been working pretty well so far behind nginx.
Ryan Duffield
+1/accepted because I think the general answer to mod_wsgi with nginx is "don't do it". :-) I have been using FastCGI for a while now and will continue to do so.
Ryan Duffield