################################################################################
##
## Sample config for apache2_mod-fcgid
##
## All lines, that are commented out, reflect the default values.
##

<IfModule fcgid_module>
##
## An idle fastcgi application will be terminated after IdleTimeout seconds.
##
#FcgidIdleTimeout 300

##
## The scan interval for idle fastcgi applications in seconds.
##
#FcgidIdleScanInterval 120

##
## a fastcgi application will be terminated if handing a single request longer
## than busy timeout. Value in seconds.
##
#FcgidBusyTimeout 300

##
## The scan interval for busy timeout fastcgi applications. Value in seconds.
##
#FcgidBusyScanInterval 120

##
## The scan interval for exit pending fastcgi applications. fastcgi applications
## will be terminated within this scanning. Value in seconds.
##
#FcgidErrorScanInterval 3

##
## The scan interval for zombie process. Value in seconds.
##
#FcgidZombieScanInterval 3

##
##
## A fastcgi application will be terminated if lifetime expired, even no error
## is detected. Value in seconds.
##
#FcgidProcessLifeTime 3600

##
## The directory to put the UNIX domain socket. (UNIX only)
##
FcgidIPCDir /var/lib/apache2/fcgid/

##
## The share memory file path.
##
FcgidProcessTableFile /var/lib/apache2/fcgid/shm

##
## The spawn-speed control score up water limit. Score increases while a process
## is spawned or terminated, and decreases as time progresses; while the score is
## higher than SpawnScoreUpLimit, the spawning will be held for a while. The
## higher this number is, the higher speed of the spawning can be.
##
#FcgidSpawnScoreUpLimit n (10)

##
## The weight of spawning.  This weight will be plused to the spawn-control
## score on every spawn. The higher this number is, the lower speed of spawning
## can be.
##
#FcgidSpawnScore n (1)

##
## The weight of termination. This weight will be plused to the score while
## fastcgi process terminates. The higher this number is, the lower speed of
## spawning can be.
##
#FcgidTerminationScore n (2)

##
## The max count of total fastcgi process count.
##
#FcgidMaxProcesses n (1000)

##
## The maximum number of fastcgi application instances allowed to run for any
## one fastcgi application.
##
#FcgidMaxProcessesPerClass n (100)

##
## The default environment variables before a fastcgi application is spawned.
## You can set this configuration more than once.
##
#FcgidInitialEnv  env_name env_value

##
## The connect timeout to a fastcgi application. Value in seconds.
##
## Default value: 2
##
FcgidConnectTimeout 10

##
## The communication timeout to a fastcgi application. Please increase this
## value if your CGI have a slow initialization or slow respond. Value in
## seconds.
##
## Default value: 5
##
FcgidIOTimeout 40

##
## CGI output cache buffer size. Value in kilobytes.
##
#FcgidOutputBufferSize 64

##
## Associate .fcgi files with mod_fcgid
##
#AddHandler fcgid-script .fcgi

##
## PHP via FastCGI
##
## uncomment the following line if you want to handle php via mod_fcgid
##
#<FilesMatch "\.php$">
#    AddHandler fcgid-script .php
#    FcgidWrapper /srv/www/cgi-bin/php5 .php
#    Options +ExecCGI
#</FilesMatch>
##
</IfModule>
# End of <IfModule fcgid_module>

##
################################################################################

