diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/vhosts/perl/CentOS.erb | 2 | ||||
-rw-r--r-- | templates/vhosts/php/CentOS.erb | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb index 0dbdb69..f02795f 100644 --- a/templates/vhosts/perl/CentOS.erb +++ b/templates/vhosts/perl/CentOS.erb @@ -21,6 +21,7 @@ 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 -%> @@ -45,6 +46,7 @@ </Directory> <%- end -%> + <%- end -%> <IfModule mod_security2.c> SecRuleEngine <%= if mod_security.to_s == 'true' then "On" else "Off" end %> </IfModule> 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 %> |