If you're going to use nginx, there's no reason to involve apache.
nginx has a 3rd party wsgi module that works quite well.  You'll need
to make a minor change to your middleware.py to remove the 3 lines
that allow turbogears to serve the static files.  With those lines
removed, only the dynamic pages would be served through wsgi and the
rest is handled through nginx.  nginx will outserve apache on static
files 5:1.  It's mod_wsgi performance is about 15% faster.

http://turbogears.org/2.0/docs/main/StaticFile.html

Apache does have threaded models - mpm-worker for one, which does
support mod_wsgi.  It is incompatible with mod_php which requires mpm-
prefork.  If you need php and wsgi and want to use mpm-worker, you can
run php with fastcgi.

nginx also has ncache.org which does caching.  If you were going to
use apache, I'd suggest varnish in front of apache with mod_wsgi.
There are unique issues with varnish dealing with IP addresses handed
to apache, so, if you are doing anything with IP addresses, you'll
need to use X-Forwarded-For.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to