summaryrefslogtreecommitdiff
path: root/templates/vhosts/gitweb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-05-17 23:42:56 +0200
committermh <mh@immerda.ch>2011-05-17 23:42:56 +0200
commit29517a83414f478a0e28a9fc57b178e35e9ba112 (patch)
treefcd3bd708145ae86649df407cda0cd49f238f999 /templates/vhosts/gitweb
parent28540105eb441ee8f5c9c935d368db5ef582f0b9 (diff)
this is now in the include file
Diffstat (limited to 'templates/vhosts/gitweb')
-rw-r--r--templates/vhosts/gitweb/gitweb.erb8
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/vhosts/gitweb/gitweb.erb b/templates/vhosts/gitweb/gitweb.erb
index 5bcfeb5..6024d65 100644
--- a/templates/vhosts/gitweb/gitweb.erb
+++ b/templates/vhosts/gitweb/gitweb.erb
@@ -10,11 +10,11 @@
ServerAdmin <%= server_admin %>
<%- end -%>
DocumentRoot <%= documentroot %>/
-
-<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
<%- if default_charset.to_s != 'absent' then -%>
AddDefaultCharset <%= default_charset %>
<%- end -%>
+
+<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
<%- if ssl_mode.to_s == 'force' then -%>
RewriteEngine On
RewriteCond %{HTTPS} !=on
@@ -63,13 +63,11 @@
ServerAdmin <%= server_admin %>
<%- end -%>
DocumentRoot <%= documentroot %>/
-
-<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
<%- if default_charset.to_s != 'absent' then -%>
AddDefaultCharset <%= default_charset %>
<%- end -%>
- Header add Strict-Transport-Security "max-age=15768000"
+<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
SetEnv GITWEB_CONFIG <%= gitweb_config %>
DirectoryIndex gitweb.cgi