diff options
Diffstat (limited to 'templates/vhosts/gitweb/gitweb.erb')
-rw-r--r-- | templates/vhosts/gitweb/gitweb.erb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/vhosts/gitweb/gitweb.erb b/templates/vhosts/gitweb/gitweb.erb index 908177b..4beda07 100644 --- a/templates/vhosts/gitweb/gitweb.erb +++ b/templates/vhosts/gitweb/gitweb.erb @@ -29,7 +29,10 @@ AddDefaultCharset <%= default_charset %> <%- end -%> <%- if ssl_mode.to_s == 'force' then -%> - Redirect permanent / https://<%= servername %>/ + RewriteEngine On + RewriteCond %{HTTPS} !=on + RewriteRule (.*) https://%{SERVER_NAME}$1 [R=permanent,L] + <%- end -%> SetEnv GITWEB_CONFIG <%= gitweb_config %> |