[patch] Generalize fastcgi support to also include SCGI and AJP
|Reported by:||Owned by:||Adrian Holovaty|
|Severity:||normal||Keywords:||ajp scgi flup runserver|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Django gets its FastCGI support from the flup package. With a few minor changes to django/core/servers/fastcgi.py Django can have access to flup's other protocols: SCGI and AJP (Apache JServ Protocol). This patch allows 'manage.py runfcgi' to take another argument, 'protocol=XXX' where XXX is currently one of 'ajp', 'scgi', or 'fcgi' ('fcgi' is the default, for backwards compatibility). If flup adds other protocols following the existing flup module naming pattern, they'd automatically be supported by this patch too.
AJP is interesting because it's supported out-of-the box in Apache 2.2 with mod_proxy_ajp, and can be used with mod_proxy_balancer. SCGI is nice because mod_scgi is easier to setup than mod_fastcgi IMHO.
This ticket is admittedly covering the same ground as #3003 , but going about it in a more general way I hope.
Change History (13)
comment:3 Changed 10 years ago by
|Keywords:||ajp scgi flup runserver added|
|Triage Stage:||Unreviewed → Ready for checkin|
comment:4 Changed 10 years ago by
|Triage Stage:||Ready for checkin → Accepted|