Wednesday, September 7. 2005Update to fcgiTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
I just came across flup and am hoping to use it to run a Django WSGI application behind Apache using mod_jk2. However, my feeble attempts have simply produced a script that exits without doing anything.
Knowing nothing about WSGI, I'm a little stumped. What could be the issue? Thanks, A. Wow, you must be the one other person who's interested in running WSGI via AJP.
First off, I believe mod_jk2 is deprecated. It hasn't been touched since March of last year. In theory, setting up django with ajp should be like setting it up with fcgi... But rather than importing fcgi.WSGIServer (or flup.server.fcgi.WSGIServer), you import flup.server.ajp.WSGIServer instead. And then you configure a worker that points at localhost:8009 and mount the worker at an URI. (Unfortunately, I'm not at all familiar with mod_jk2.) Anyhow, that's an extremely abbreviated version of "how you do it." Oddly my links were filtered out.
http://hugo.muensterland.org/2005/07/26/running-django-with-fcgi-and-lighttpd/ http://hugo.muensterland.org/2005/07/27/django-lighttpd-and-fcgi-second-take/ I actually found a simple mistake I was making, thanks for your help.
When you say mod_jk2 is deprecated, this means that Apache2's JK is different? Guess I'll go read up. I'm doing this on a hosting provider's system, so I gotta deal with it. Thanks, A. #sorry for the slightly offtopic message
Allan, is it possible to serve Quixote app using flup.server.scgi on win32 ? I found that mod_scgi (at long last!) compiled for windows ( http://www.zedshaw.com/projects/scgi_rails/index.html http://www.zedshaw.com/projects/scgi_rails/win32.html ), but scgi_server.py don't want to work in windows I really can't say anything about win32 compatibility. The best thing to do is to try it out.
I'd be more than happy to incorporate any win32 fixes (as long as it doesn't interfere with the operation on Unix-like systems). I've been getting a lot of questions about win32 compatibility lately, but I really don't have the resources to do any testing on my own. |
LinksCalendarQuicksearchCategoriesBlog Administration |