|
156 | 156 | <tmpl_if name='python' op='==' value='y'> |
157 | 157 | <IfModule mod_python.c> |
158 | 158 | <Directory {tmpl_var name='web_document_root_www'}> |
159 | | - AddHandler mod_python .py |
| 159 | + <FilesMatch "\.py$"> |
| 160 | + SetHandler mod_python |
| 161 | + </FilesMatch> |
160 | 162 | PythonHandler mod_python.publisher |
161 | 163 | PythonDebug On |
162 | 164 | </Directory> |
|
174 | 176 | </tmpl_if> |
175 | 177 | </Directory> |
176 | 178 | ScriptAlias /cgi-bin/ <tmpl_var name='document_root'>/cgi-bin/ |
177 | | - AddHandler cgi-script .cgi |
178 | | - AddHandler cgi-script .pl |
| 179 | + <FilesMatch "\.(cgi|pl)$"> |
| 180 | + SetHandler cgi-script |
| 181 | + </FilesMatch> |
179 | 182 | </tmpl_if> |
180 | 183 | <tmpl_if name='suexec' op='==' value='y'> |
181 | 184 | # suexec enabled |
|
202 | 205 | # suphp enabled |
203 | 206 | <Directory {tmpl_var name='web_document_root'}> |
204 | 207 | <IfModule mod_suphp.c> |
205 | | - suPHP_Engine on |
206 | | - # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> |
| 208 | + suPHP_Engine on |
| 209 | + # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> |
207 | 210 | <tmpl_if name='has_custom_php_ini'> |
208 | 211 | suPHP_ConfigPath <tmpl_var name='custom_php_ini_dir'> |
209 | 212 | </tmpl_if> |
210 | | - AddHandler x-httpd-suphp .php .php3 .php4 .php5 |
211 | | - suPHP_AddHandler x-httpd-suphp |
| 213 | + <FilesMatch "\.php[345]?$"> |
| 214 | + SetHandler x-httpd-suphp |
| 215 | + </FilesMatch> |
| 216 | + suPHP_AddHandler x-httpd-suphp |
212 | 217 | </IfModule> |
213 | 218 | </Directory> |
214 | 219 | </tmpl_if> |
215 | 220 | <tmpl_if name='php' op='==' value='cgi'> |
216 | 221 | # php as cgi enabled |
217 | 222 | ScriptAlias /php5-cgi <tmpl_var name='cgi_starter_path'><tmpl_var name='cgi_starter_script'> |
218 | 223 | Action php5-cgi /php5-cgi |
219 | | - AddHandler php5-cgi .php .php3 .php4 .php5 |
| 224 | + <FilesMatch "\.php[345]?$"> |
| 225 | + SetHandler php5-cgi |
| 226 | + </FilesMatch> |
220 | 227 | <Directory {tmpl_var name='cgi_starter_path'}> |
221 | 228 | <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
222 | 229 | Require all granted |
|
253 | 260 | </tmpl_if> |
254 | 261 | </IfModule> |
255 | 262 | <Directory {tmpl_var name='web_document_root_www'}> |
256 | | - AddHandler fcgid-script .php .php3 .php4 .php5 |
| 263 | + <FilesMatch "\.php[345]?$"> |
| 264 | + SetHandler fcgid-script |
| 265 | + </FilesMatch> |
257 | 266 | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php |
258 | 267 | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php3 |
259 | 268 | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php4 |
|
268 | 277 | </tmpl_if> |
269 | 278 | </Directory> |
270 | 279 | <Directory {tmpl_var name='web_document_root'}> |
271 | | - AddHandler fcgid-script .php .php3 .php4 .php5 |
| 280 | + <FilesMatch "\.php[345]?$"> |
| 281 | + SetHandler fcgid-script |
| 282 | + </FilesMatch> |
272 | 283 | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php |
273 | 284 | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php3 |
274 | 285 | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php4 |
|
293 | 304 | Allow from all |
294 | 305 | </tmpl_if> |
295 | 306 | </Directory> |
296 | | - AddHandler php5-fcgi .php .php3 .php4 .php5 |
| 307 | + <FilesMatch "\.php[345]?$"> |
| 308 | + SetHandler php5-fcgi |
| 309 | + </FilesMatch> |
297 | 310 | Action php5-fcgi /php5-fcgi |
298 | 311 | Alias /php5-fcgi {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} |
299 | 312 | <tmpl_if name='use_tcp'> |
|
0 commit comments