SCGI Interface

Module: mod_scgi


Brief description of mod_scgi directives

option description
scgi.server backend server definition(s) for hosts to which to send requests; options for each backend host
scgi.balance load-balancing algorithm for backends ("fair", "least-connection", "round-robin", "hash", or "sticky")
scgi.debug debug level (value between 0 and 65535) map multiple extensions to the same backend
scgi.protocol protocol between lighttpd and backend server ("scgi" (default) or "uwsgi") (since 1.4.42)

Details for scgi.server parameters can be found in mod_fastcgi documentation, since the SCGI module shares the same code infrastructure with the FastCGI module, and fastcgi.server parameters are very similar.

Note "check-local" is enabled by default, due to historical reasons, but most users serving virtual paths will want to disable it. If enabled, lighttpd first checks for a file in the local 'server.document-root' tree and returns 404 (Not Found) if no such file exists. If disabled, lighttpd forwards the request to the backend without performing this check.

Examples how to set up Python WSGI server with lighttpd: HowToPythonWSGI

Updated by gstrauss about 6 years ago · 17 revisions