summaryrefslogtreecommitdiff
path: root/templates/vhosts/php/php.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php/php.erb')
-rw-r--r--templates/vhosts/php/php.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/vhosts/php/php.erb b/templates/vhosts/php/php.erb
index 4a6c829..99c94e2 100644
--- a/templates/vhosts/php/php.erb
+++ b/templates/vhosts/php/php.erb
@@ -12,8 +12,20 @@
<%- end -%>
DocumentRoot <%= documentroot %>/
+ <%- case logmode.to_s
+ when 'nologs' -%>
+ ErrorLog /dev/null
+ CustomLog /dev/null
+ <%- when 'semianonym' -%>
+ ErrorLog <%= logdir %>/error_log
+ CustomLog <%= logdir %>/access_log noip
+ <%- when 'anonym' -%>
+ ErrorLog /dev/null
+ CustomLog <%= logdir %>/access_log noip
+ <%- else -%>
ErrorLog <%= logdir %>/error_log
CustomLog <%= logdir %>/access_log combined
+ <%- end -%>
<%- if ssl_mode.to_s == 'force' then -%>
Redirect permanent / https://<%= servername %>/
<%- end -%>
@@ -92,8 +104,20 @@
<%- end -%>
DocumentRoot <%= documentroot %>/
+ <%- case logmode.to_s
+ when 'nologs' -%>
+ ErrorLog /dev/null
+ CustomLog /dev/null
+ <%- when 'semianonym' -%>
+ ErrorLog <%= logdir %>/error_log
+ CustomLog <%= logdir %>/access_log noip
+ <%- when 'anonym' -%>
+ ErrorLog /dev/null
+ CustomLog <%= logdir %>/access_log noip
+ <%- else -%>
ErrorLog <%= logdir %>/error_log
CustomLog <%= logdir %>/access_log combined
+ <%- end -%>
<%- if run_mode.to_s == 'itk' -%>
<IfModule mpm_itk_module>
AssignUserId <%= run_uid+" "+run_gid %>