FastCGI for Lighttpd
The Lighttpd web server supports the FastCGI protocol natively.
Note:
Assume the Genero Application Server is installed in the following directory (FGLASDIR): /opt/gas. Make the appropriate substitution for the FGLASDIR when applying these examples to your own configuration.
For more information, go to the ModFastCGI documentation provided by Apache.
ModFastCGI configuration to manage GAS
Add these lines to your Lighttpd configuration
file:
server.modules += ( "mod_fastcgi" )
fastcgi.server = (
"/gas" =>
((
"host" => "127.0.0.1",
"port" => <gas-server-port>,
"check-local" => "disable",
"bin-path" => "/opt/gas/bin/wrapper.fcgi",
"bin-environment" => (
"FGLASDIR" => "/opt/gas"
),
"max-procs" => 1
))
)Important: Avoiding timeout issues
The "server.max-write-idle"
global parameter must be higher than both the REQUEST_RESULT and
DVM_AVAILABLE GAS configurations.
Default values:
REQUEST_RESULT: 45sDVM_AVAILABLE: 10s
With these default values, this may not be an issue, but if you increase either value,
adjust the server.max-write-idle timeout accordingly.