summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_gallery2/php_gallery2.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php_gallery2/php_gallery2.erb')
-rw-r--r--templates/vhosts/php_gallery2/php_gallery2.erb60
1 files changed, 4 insertions, 56 deletions
diff --git a/templates/vhosts/php_gallery2/php_gallery2.erb b/templates/vhosts/php_gallery2/php_gallery2.erb
index ef2444f..db4068d 100644
--- a/templates/vhosts/php_gallery2/php_gallery2.erb
+++ b/templates/vhosts/php_gallery2/php_gallery2.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
@@ -107,20 +94,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 %>
@@ -197,20 +171,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
@@ -284,20 +245,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