|
149 | 149 | </tmpl_if> |
150 | 150 | <tmpl_if name='php' op='==' value='fast-cgi'> |
151 | 151 | # php as fast-cgi enabled |
| 152 | + # For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html |
152 | 153 | <IfModule mod_fcgid.c> |
153 | | - |
154 | | - # SocketPath /tmp/fcgid_sock/ |
155 | | - |
156 | | - # IdleTimeout n (300 seconds) |
157 | | - # An idle fastcgi application will be terminated after IdleTimeout seconds. |
158 | | - # FcgidIdleTimeout 300 |
| 154 | + <tmpl_if name='fastcgi_config_syntax' op='==' value='1'> |
159 | 155 | IdleTimeout 300 |
160 | | - |
161 | | - # ProcessLifeTime n (3600 seconds) |
162 | | - # A fastcgi application will be terminated if lifetime expired, even no error is detected. |
163 | | - # FcgidProcessLifeTime 3600 |
164 | 156 | ProcessLifeTime 3600 |
165 | | - |
166 | | - # MaxProcessCount n (1000) |
167 | | - # The max count of total fastcgi process count. |
168 | | - # FcgidMaxProcesses 1000 |
169 | 157 | MaxProcessCount 1000 |
170 | | - |
171 | | - # DefaultMinClassProcessCount n (3) |
172 | | - # The minimum number of fastcgi application instances for any one fastcgi application. |
173 | | - # Idle fastcgi will not be killed if their count is less than n |
174 | | - # Set this to 0, and tweak IdleTimeout |
175 | | - # FcgidMinProcessesPerClass 0 |
176 | 158 | DefaultMinClassProcessCount 0 |
177 | | - |
178 | | - # DefaultMaxClassProcessCount n (100) |
179 | | - # The maximum number of fastcgi application instances allowed to run for |
180 | | - # particular one fastcgi application. |
181 | | - # FcgidMaxProcessesPerClass 100 |
182 | 159 | DefaultMaxClassProcessCount 100 |
183 | | - |
184 | | - # IPCConnectTimeout n (3 seconds) |
185 | | - # The connect timeout to a fastcgi application. |
186 | | - # FcgidConnectTimeout 3 |
187 | 160 | IPCConnectTimeout 3 |
188 | | - |
189 | | - # IPCCommTimeout n (20 seconds) |
190 | | - # The communication timeout to a fastcgi application. Please increase this |
191 | | - # value if your CGI have a slow initialization or slow respond. |
192 | | - # FcgidIOTimeout 360 |
193 | 161 | IPCCommTimeout 360 |
194 | | - |
195 | | - # BusyTimeout n (300 seconds) |
196 | | - # A fastcgi application will be terminated if handing a single request |
197 | | - # longer than busy timeout. |
198 | | - # FcgidBusyTimeout 300 |
199 | 162 | BusyTimeout 300 |
200 | | - |
| 163 | + <tmpl_else> |
| 164 | + FcgidIdleTimeout 300 |
| 165 | + FcgidProcessLifeTime 3600 |
| 166 | + FcgidMaxProcesses 1000 |
| 167 | + FcgidMinProcessesPerClass 0 |
| 168 | + FcgidMaxProcessesPerClass 100 |
| 169 | + FcgidConnectTimeout 3 |
| 170 | + FcgidIOTimeout 360 |
| 171 | + FcgidBusyTimeout 300 |
| 172 | + </tmpl_if> |
201 | 173 | </IfModule> |
202 | 174 | <Directory {tmpl_var name='web_document_root_www'}> |
203 | 175 | AddHandler fcgid-script .php .php3 .php4 .php5 |
|
0 commit comments