summaryrefslogtreecommitdiff
path: root/templates/vhosts/php/CentOS.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php/CentOS.erb')
-rw-r--r--templates/vhosts/php/CentOS.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb
index 3841c39..e957f07 100644
--- a/templates/vhosts/php/CentOS.erb
+++ b/templates/vhosts/php/CentOS.erb
@@ -16,6 +16,12 @@
<%- if default_charset.to_s != 'absent' then -%>
AddDefaultCharset <%= default_charset %>
<%- end -%>
+ <%- if run_mode.to_s == 'itk' -%>
+ <IfModule mpm_itk_module>
+ AssignUserId <%= run_uid+" "+run_gid %>
+ </IfModule>
+ <%- end -%>
+ <%- if (options.to_s != 'absent' or htpasswd_file.to_s != 'absent') and not ssl_mode.to_s == 'force' then -%>
<Directory "<%= documentroot %>/">
AllowOverride <%= allow_override %>
<%- if options.to_s != 'absent' or do_includes.to_s == 'true' then -%>
@@ -33,6 +39,7 @@
php_admin_value upload_tmp_dir <%= php_upload_tmp_dir %>
php_admin_value session.save_path <%= php_session_save_path %>
</Directory>
+ <%- end -%>
<IfModule mod_security2.c>
SecRuleEngine <%= if mod_security.to_s == 'true' then "On" else "Off" end %>