﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4054	FastCGI, SCGI and ajp in lighttpd 1.5	stephan	Jacob	"I propose an addition to the documentation to be ready for lighttpd 1.5.

Lighty 1.5 completely drops mod_fastcgi and adds mod_proxy_core and backends for scgi, fastcgi and even ajp, so the documentation has to be adjusted accordingly.

This little code snippet will proxy requests coming to www.example.org to a django app which has a unix socket at /tmp/django-myproject.sock

{{{
$HTTP[""host""] == ""www.example.org"" {
  proxy-core.balancer = ""round-robin""
  proxy-core.protocol = ""scgi""
  proxy-core.check-local = ""disable""
  proxy-core.backends = ( ""unix:/tmp/django-myproject.sock"" )
  proxy-core.max-pool-size = 5
}
}}}

 * proxy-core.protocol should match the protocol setting from runfcgi
 * proxy-core.backends should match socket/host-port setting from runfcgi
 * proxy-core.max-pool-size should match maxchildren from runfcgi

Maybe runfcgi should be dropped and added to runserver. However, calling runserver without arguments would still spawn the development server.

After lighty 1.5.0 is released we should do some benchmarks on performance of fastcgi/scgi/ajp, try different load-balancers and determine whether forking or threading is better on different setups.

=== References ===

http://trac.lighttpd.net/trac/wiki/Docs%3AModProxyCore"		closed	Documentation	dev		wontfix	lighttpd, fast, fcgi, scgi, ajp		Design decision needed	0	0	0	0	0	0
