File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 305305 # suexec enabled
306306 SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
307307</tmpl_if>
308+ # Clear PHP settings of this website
309+ <FilesMatch "\.ph(p3?|tml)$">
310+ SetHandler None
311+ </FilesMatch>
308312<tmpl_if name='php' op='==' value='mod'>
309313 # mod_php enabled
310314 AddType application/x-httpd-php .php .php3 .php4 .php5
317321</tmpl_if>
318322</tmpl_if>
319323<tmpl_if name='php' op='==' value='suphp'>
320- suPHP_Engine on
321- # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
324+ # suphp enabled
325+ <Directory {tmpl_var name='web_document_root'}>
326+ <IfModule mod_suphp.c>
327+ suPHP_Engine on
328+ # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
322329<tmpl_if name='has_custom_php_ini'>
323330 suPHP_ConfigPath <tmpl_var name='custom_php_ini_dir'>
324331</tmpl_if>
325- AddHandler x-httpd-suphp .php .php3 .php4 .php5
326- suPHP_AddHandler x-httpd-suphp
332+ AddHandler x-httpd-suphp .php .php3 .php4 .php5
333+ suPHP_AddHandler x-httpd-suphp
334+ </IfModule>
335+ </Directory>
327336</tmpl_if>
328337<tmpl_if name='php' op='==' value='cgi'>
329338 # php as cgi enabled
You can’t perform that action at this time.
0 commit comments