|
61 | 61 | </IfModule> |
62 | 62 |
|
63 | 63 | <Directory {tmpl_var name='web_document_root_www'}> |
| 64 | + # Clear PHP settings of this website |
| 65 | + <FilesMatch ".+\.ph(p[345]?|t|tml)$"> |
| 66 | + SetHandler None |
| 67 | + </FilesMatch> |
64 | 68 | Options +FollowSymLinks |
65 | 69 | AllowOverride <tmpl_var name='allow_override'> |
66 | 70 | <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
|
89 | 93 | </tmpl_if> |
90 | 94 | </Directory> |
91 | 95 | <Directory {tmpl_var name='web_document_root'}> |
| 96 | + # Clear PHP settings of this website |
| 97 | + <FilesMatch ".+\.ph(p[345]?|t|tml)$"> |
| 98 | + SetHandler None |
| 99 | + </FilesMatch> |
92 | 100 | Options +FollowSymLinks |
93 | 101 | AllowOverride <tmpl_var name='allow_override'> |
94 | 102 | <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
|
190 | 198 | SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> |
191 | 199 | </IfModule> |
192 | 200 | </tmpl_if> |
193 | | - # Clear PHP settings of this website |
194 | | - <FilesMatch ".+\.ph(p[345]?|t|tml)$"> |
195 | | - SetHandler None |
196 | | - </FilesMatch> |
197 | 201 | <tmpl_if name='php' op='==' value='mod'> |
198 | 202 | # mod_php enabled |
199 | 203 | AddType application/x-httpd-php .php .php3 .php4 .php5 |
|
308 | 312 | Allow from all |
309 | 313 | </tmpl_if> |
310 | 314 | </Directory> |
311 | | - <FilesMatch "\.php[345]?$"> |
312 | | - SetHandler php5-fcgi |
313 | | - </FilesMatch> |
| 315 | + <Directory {tmpl_var name='web_document_root_www'}> |
| 316 | + <FilesMatch "\.php[345]?$"> |
| 317 | + SetHandler php5-fcgi |
| 318 | + </FilesMatch> |
| 319 | + </Directory> |
| 320 | + <Directory {tmpl_var name='web_document_root'}> |
| 321 | + <FilesMatch "\.php[345]?$"> |
| 322 | + SetHandler php5-fcgi |
| 323 | + </FilesMatch> |
| 324 | + </Directory> |
314 | 325 | Action php5-fcgi /php5-fcgi virtual |
315 | 326 | 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'} |
316 | 327 | <tmpl_if name='use_tcp'> |
|
332 | 343 | Allow from all |
333 | 344 | </tmpl_if> |
334 | 345 | </Directory> |
335 | | - <FilesMatch "\.php[345]?$"> |
336 | | - SetHandler hhvm-fcgi |
337 | | - </FilesMatch> |
338 | | - <FilesMatch "\.hh$"> |
339 | | - SetHandler hhvm-fcgi |
340 | | - </FilesMatch> |
| 346 | + <Directory {tmpl_var name='web_document_root_www'}> |
| 347 | + <FilesMatch "\.php[345]?$"> |
| 348 | + SetHandler hhvm-fcgi |
| 349 | + </FilesMatch> |
| 350 | + <FilesMatch "\.hh$"> |
| 351 | + SetHandler hhvm-fcgi |
| 352 | + </FilesMatch> |
| 353 | + </Directory> |
| 354 | + <Directory {tmpl_var name='web_document_root'}> |
| 355 | + <FilesMatch "\.php[345]?$"> |
| 356 | + SetHandler hhvm-fcgi |
| 357 | + </FilesMatch> |
| 358 | + <FilesMatch "\.hh$"> |
| 359 | + SetHandler hhvm-fcgi |
| 360 | + </FilesMatch> |
| 361 | + </Directory> |
341 | 362 | Action hhvm-fcgi /hhvm-fcgi virtual |
342 | 363 | Alias /hhvm-fcgi {tmpl_var name='document_root'}/cgi-bin/hhvm-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} |
343 | 364 | FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/hhvm-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} -idle-timeout 300 -socket /var/run/hhvm/hhvm.<tmpl_var name='system_user'>.sock -pass-header Authorization |
|
0 commit comments