summaryrefslogtreecommitdiff
path: root/templates/vhosts/php
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-12-06 12:22:45 +0000
committermh <mh@immerda.ch>2008-12-06 12:22:45 +0000
commitc3efcc89935af43f1ebf13d4185bae3892777365 (patch)
treea0cb21d14d1da94f748ddd67f68946c9c017a78e /templates/vhosts/php
parentaac520a5ce0051034f68b1aa88c5fe181c89d160 (diff)
finished sslmode config, added itk stuff to php vhost
Diffstat (limited to 'templates/vhosts/php')
-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 %>