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.erb30
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb
new file mode 100644
index 0000000..a7f21b6
--- /dev/null
+++ b/templates/vhosts/php/CentOS.erb
@@ -0,0 +1,30 @@
+<VirtualHost *:80>
+ Include conf.d/defaults.inc
+
+ ServerName <%= servername %>
+ <%- unless serveralias.to_s.empty? then -%>
+ ServerAlias <%= serveralias %>
+ <%- end -%>
+ DocumentRoot <%= documentroot %>
+
+ ErrorLog <%= logdir %>/error_log
+ CustomLog <%= logdir %>/access_log combined
+
+ <Directory "<%= documentroot %>">
+ AllowOverride <%= allow_override %>
+
+ php_admin_flag engine on
+ php_admin_value open_basedir <%= documentroot %>:<%= upload_tmp_dir %>:<%=session_save_path %>
+ php_admin_value upload_tmp_dir <%= upload_tmp_dir %>
+ php_admin_value session.save_path <%=session_save_path %>
+ </Directory>
+
+ <IfModule mod_security2.c>
+ SecRuleEngine <%= if mod_security.to_s == 'true' then "On" else "Off" end %>
+ </IfModule>
+
+
+ <%- unless additional_options == 'absent' then -%>
+ <%= additional_options %>
+ <%- end -%>
+</VirtualHost>