summaryrefslogtreecommitdiff
path: root/templates/vhosts/proxy/proxy.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/proxy/proxy.erb')
-rw-r--r--templates/vhosts/proxy/proxy.erb30
1 files changed, 2 insertions, 28 deletions
diff --git a/templates/vhosts/proxy/proxy.erb b/templates/vhosts/proxy/proxy.erb
index 885bce3..bb31b6b 100644
--- a/templates/vhosts/proxy/proxy.erb
+++ b/templates/vhosts/proxy/proxy.erb
@@ -10,20 +10,7 @@
ServerAdmin <%= server_admin %>
<%- end -%>
- <%- 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
RewriteCond %{HTTPS} !=on
@@ -64,20 +51,7 @@
ServerAdmin <%= server_admin %>
<%- end -%>
- <%- 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') %>
Header add Strict-Transport-Security "max-age=15768000"