diff options
author | mh <mh@immerda.ch> | 2009-11-18 23:51:34 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-11-18 23:51:34 +0100 |
commit | b1fd227aa13d50112179739a1184c13756f29d84 (patch) | |
tree | 465dcdaa440a70fc57b31f79c5ba22b919ffb72b /templates/vhosts/php_spip/CentOS.erb | |
parent | 8f0a4916ad6d42de12ae3aca3110e8e5b59bfe1b (diff) |
introduce safe mode exec as well for the other vhost types
Diffstat (limited to 'templates/vhosts/php_spip/CentOS.erb')
-rw-r--r-- | templates/vhosts/php_spip/CentOS.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/vhosts/php_spip/CentOS.erb b/templates/vhosts/php_spip/CentOS.erb index bf15796..4f54aaa 100644 --- a/templates/vhosts/php_spip/CentOS.erb +++ b/templates/vhosts/php_spip/CentOS.erb @@ -45,6 +45,9 @@ php_admin_value open_basedir <%- if php_use_smarty.to_s == 'true' -%>/usr/share/php/Smarty/:<%- end -%><%- if php_use_pear.to_s == 'true' -%>/usr/share/pear/:<%- end -%><%= documentroot %>:<%= real_php_upload_tmp_dir %>:<%= real_php_session_save_path %> php_admin_value upload_tmp_dir <%= real_php_upload_tmp_dir %> php_admin_value session.save_path <%= real_php_session_save_path %> + <%- unless real_php_safe_mode_exec_bin_dir.to_s == 'absent' then -%> + php_admin_value safe_mode_exec_dir <%= real_php_safe_mode_exec_bin_dir %> + <%- end -%> </Directory> <%- end -%> @@ -111,6 +114,9 @@ php_admin_value open_basedir <%- if php_use_smarty.to_s == 'true' -%>/usr/share/php/Smarty/:<%- end -%><%- if php_use_pear.to_s == 'true' -%>/usr/share/pear/:<%- end -%><%= documentroot %>:<%= real_php_upload_tmp_dir %>:<%= real_php_session_save_path %> php_admin_value upload_tmp_dir <%= real_php_upload_tmp_dir %> php_admin_value session.save_path <%= real_php_session_save_path %> + <%- unless real_php_safe_mode_exec_bin_dir.to_s == 'absent' then -%> + php_admin_value safe_mode_exec_dir <%= real_php_safe_mode_exec_bin_dir %> + <%- end -%> </Directory> <IfModule mod_security2.c> |