Ryan Duffield
Ryan Duffield

Reputation: 19019

nginx with mod_wsgi

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?

Upvotes: 2

Views: 2387

Answers (2)

Graham Dumpleton
Graham Dumpleton

Reputation: 58543

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

Upvotes: 4

thethinman
thethinman

Reputation: 332

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

Upvotes: 1

Related Questions