[patch] Generalize fastcgi support to also include SCGI and AJP
|Reported by:||Barry Pederson <bp@…>||Owned by:||adrian|
|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)
Changed 9 years ago by Barry Pederson <bp@…>
comment:3 Changed 9 years ago by Simon G. <dev@…>
- Keywords ajp scgi flup runserver added
- Triage Stage changed from Unreviewed to Ready for checkin
comment:4 Changed 8 years ago by mtredinnick
- Needs documentation set
- Triage Stage changed from Ready for checkin to Accepted
Changed 8 years ago by bp@…
Changed 8 years ago by Simon G. <dev@…>
comment:8 Changed 8 years ago by Simon G. <dev@…>
- Triage Stage changed from Accepted to Ready for checkin