summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_drupal/php_drupal.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php_drupal/php_drupal.erb')
-rw-r--r--templates/vhosts/php_drupal/php_drupal.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/vhosts/php_drupal/php_drupal.erb b/templates/vhosts/php_drupal/php_drupal.erb
index 0367a53..9b6c3ef 100644
--- a/templates/vhosts/php_drupal/php_drupal.erb
+++ b/templates/vhosts/php_drupal/php_drupal.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 -%>
@@ -114,8 +126,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 %>