summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_spip/php_spip.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php_spip/php_spip.erb')
-rw-r--r--templates/vhosts/php_spip/php_spip.erb60
1 files changed, 4 insertions, 56 deletions
diff --git a/templates/vhosts/php_spip/php_spip.erb b/templates/vhosts/php_spip/php_spip.erb
index ebd9d84..48a6774 100644
--- a/templates/vhosts/php_spip/php_spip.erb
+++ b/templates/vhosts/php_spip/php_spip.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
@@ -99,20 +86,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 -%>
AddDefaultCharset <%= default_charset %>
@@ -181,20 +155,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
@@ -258,20 +219,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