summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_joomla
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-05-17 23:16:43 +0200
committermh <mh@immerda.ch>2011-05-17 23:16:43 +0200
commitcd1150af3af7411c88835d8fa5e41c40d40146fb (patch)
tree4c343cb78f61b424aed9e4bffdd45aa1c6cda374 /templates/vhosts/php_joomla
parent09d598562f66e524e24ca4b1a924a43bb89cecfc (diff)
switching logs over to partials
Diffstat (limited to 'templates/vhosts/php_joomla')
-rw-r--r--templates/vhosts/php_joomla/php_joomla.erb60
1 files changed, 4 insertions, 56 deletions
diff --git a/templates/vhosts/php_joomla/php_joomla.erb b/templates/vhosts/php_joomla/php_joomla.erb
index c7e06d7..09d1bda 100644
--- a/templates/vhosts/php_joomla/php_joomla.erb
+++ b/templates/vhosts/php_joomla/php_joomla.erb
@@ -15,20 +15,7 @@
<%- 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 -%>
+<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
<%- if ssl_mode.to_s == 'force' then -%>
RewriteEngine On
@@ -108,20 +95,7 @@
<%- 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 -%>
+<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
<%- if default_charset.to_s != 'absent' then -%>
@@ -190,20 +164,7 @@
DirectoryIndex index.htm index.html index.php
<%- end -%>
- <%- case logmode.to_s
- when 'nologs' -%>
- ErrorLog /dev/null
- CustomLog /dev/null
- <%- when 'semianonym' -%>
- ErrorLog <%= logdir %>/<%= logfileprefix %>-error_log
- CustomLog <%= logdir %>/<%= logfileprefix %>-access_log noip
- <%- when 'anonym' -%>
- ErrorLog /dev/null
- CustomLog <%= logdir %>/<%= logfileprefix %>-access_log noip
- <%- else -%>
- ErrorLog <%= logdir %>/<%= logfileprefix %>-error_log
- CustomLog <%= logdir %>/<%= logfileprefix %>-access_log combined
- <%- end -%>
+<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
ProxyPreserveHost On
ProxyRequests off
@@ -278,20 +239,7 @@
DirectoryIndex index.htm index.html index.php
<%- end -%>
- <%- case logmode.to_s
- when 'nologs' -%>
- ErrorLog /dev/null
- CustomLog /dev/null
- <%- when 'semianonym' -%>
- ErrorLog <%= logdir %>/<%= logfileprefix %>-error_log
- CustomLog <%= logdir %>/<%= logfileprefix %>-access_log noip
- <%- when 'anonym' -%>
- ErrorLog /dev/null
- CustomLog <%= logdir %>/<%= logfileprefix %>-access_log noip
- <%- else -%>
- ErrorLog <%= logdir %>/<%= logfileprefix %>-error_log
- CustomLog <%= logdir %>/<%= logfileprefix %>-access_log combined
- <%- end -%>
+<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
ProxyPreserveHost On
ProxyRequests off