|
155 | 155 |
|
156 | 156 | # IdleTimeout n (300 seconds) |
157 | 157 | # An idle fastcgi application will be terminated after IdleTimeout seconds. |
158 | | - FcgidIdleTimeout 300 |
| 158 | + # FcgidIdleTimeout 300 |
| 159 | + IdleTimeout 300 |
159 | 160 |
|
160 | 161 | # ProcessLifeTime n (3600 seconds) |
161 | 162 | # A fastcgi application will be terminated if lifetime expired, even no error is detected. |
162 | | - FcgidProcessLifeTime 3600 |
| 163 | + # FcgidProcessLifeTime 3600 |
| 164 | + ProcessLifeTime 3600 |
163 | 165 |
|
164 | 166 | # MaxProcessCount n (1000) |
165 | 167 | # The max count of total fastcgi process count. |
166 | 168 | # FcgidMaxProcesses 1000 |
| 169 | + MaxProcessCount 1000 |
167 | 170 |
|
168 | 171 | # DefaultMinClassProcessCount n (3) |
169 | 172 | # The minimum number of fastcgi application instances for any one fastcgi application. |
170 | 173 | # Idle fastcgi will not be killed if their count is less than n |
171 | 174 | # Set this to 0, and tweak IdleTimeout |
172 | | - FcgidMinProcessesPerClass 0 |
| 175 | + # FcgidMinProcessesPerClass 0 |
| 176 | + DefaultMinClassProcessCount 0 |
173 | 177 |
|
174 | 178 | # DefaultMaxClassProcessCount n (100) |
175 | 179 | # The maximum number of fastcgi application instances allowed to run for |
176 | 180 | # particular one fastcgi application. |
177 | | - FcgidMaxProcessesPerClass 100 |
| 181 | + # FcgidMaxProcessesPerClass 100 |
| 182 | + DefaultMaxClassProcessCount 100 |
178 | 183 |
|
179 | 184 | # IPCConnectTimeout n (3 seconds) |
180 | 185 | # The connect timeout to a fastcgi application. |
181 | | - FcgidConnectTimeout 3 |
| 186 | + # FcgidConnectTimeout 3 |
| 187 | + IPCConnectTimeout 3 |
182 | 188 |
|
183 | 189 | # IPCCommTimeout n (20 seconds) |
184 | 190 | # The communication timeout to a fastcgi application. Please increase this |
185 | 191 | # value if your CGI have a slow initialization or slow respond. |
186 | | - FcgidIOTimeout 360 |
| 192 | + # FcgidIOTimeout 360 |
| 193 | + IPCCommTimeout 360 |
187 | 194 |
|
188 | 195 | # BusyTimeout n (300 seconds) |
189 | 196 | # A fastcgi application will be terminated if handing a single request |
190 | 197 | # longer than busy timeout. |
191 | | - FcgidBusyTimeout 300 |
| 198 | + # FcgidBusyTimeout 300 |
| 199 | + BusyTimeout 300 |
192 | 200 |
|
193 | 201 | </IfModule> |
194 | 202 | <Directory {tmpl_var name='web_document_root_www'}> |
|
377 | 385 | </tmpl_if> |
378 | 386 | <tmpl_if name='php' op='==' value='fast-cgi'> |
379 | 387 | # php as fast-cgi enabled |
| 388 | + # See: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html |
380 | 389 | <IfModule mod_fcgid.c> |
381 | | - # IdleTimeout n (300 seconds) |
382 | | - # An idle fastcgi application will be terminated after IdleTimeout seconds. |
| 390 | + <tmpl_if name='fastcgi_config_syntax' op='==' value='1'> |
| 391 | + IdleTimeout 300 |
| 392 | + ProcessLifeTime 3600 |
| 393 | + MaxProcessCount 1000 |
| 394 | + DefaultMinClassProcessCount 0 |
| 395 | + DefaultMaxClassProcessCount 100 |
| 396 | + IPCConnectTimeout 3 |
| 397 | + IPCCommTimeout 360 |
| 398 | + BusyTimeout 300 |
| 399 | + <tmpl_else> |
383 | 400 | FcgidIdleTimeout 300 |
384 | | - |
385 | | - # ProcessLifeTime n (3600 seconds) |
386 | | - # A fastcgi application will be terminated if lifetime expired, even no error is detected. |
387 | | - FcgidProcessLifeTime 3600 |
388 | | - |
389 | | - # MaxProcessCount n (1000) |
390 | | - # The max count of total fastcgi process count. |
391 | | - # FcgidMaxProcesses 1000 |
392 | | - |
393 | | - # DefaultMinClassProcessCount n (3) |
394 | | - # The minimum number of fastcgi application instances for any one fastcgi application. |
395 | | - # Idle fastcgi will not be killed if their count is less than n |
396 | | - # Set this to 0, and tweak IdleTimeout |
| 401 | + FcgidProcessLifeTime 3600 |
| 402 | + FcgidMaxProcesses 1000 |
397 | 403 | FcgidMinProcessesPerClass 0 |
398 | | - |
399 | | - # DefaultMaxClassProcessCount n (100) |
400 | | - # The maximum number of fastcgi application instances allowed to run for |
401 | | - # particular one fastcgi application. |
402 | | - FcgidMaxProcessesPerClass 100 |
403 | | - |
404 | | - # IPCConnectTimeout n (3 seconds) |
405 | | - # The connect timeout to a fastcgi application. |
406 | | - FcgidConnectTimeout 3 |
407 | | - |
408 | | - # IPCCommTimeout n (20 seconds) |
409 | | - # The communication timeout to a fastcgi application. Please increase this |
410 | | - # value if your CGI have a slow initialization or slow respond. |
411 | | - FcgidIOTimeout 360 |
412 | | - |
413 | | - # BusyTimeout n (300 seconds) |
414 | | - # A fastcgi application will be terminated if handing a single request |
415 | | - # longer than busy timeout. |
| 404 | + FcgidMaxProcessesPerClass 100 |
| 405 | + FcgidConnectTimeout 3 |
| 406 | + FcgidIOTimeout 360 |
416 | 407 | FcgidBusyTimeout 300 |
417 | | - |
| 408 | + </tmpl_if> |
418 | 409 | </IfModule> |
419 | 410 | <Directory {tmpl_var name='web_document_root_www'}> |
420 | 411 | AddHandler fcgid-script .php .php3 .php4 .php5 |
|
0 commit comments