diff options
-rw-r--r-- | templates/vhosts/default.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/vhosts/default.erb b/templates/vhosts/default.erb index 809cd9b..5201406 100644 --- a/templates/vhosts/default.erb +++ b/templates/vhosts/default.erb @@ -28,6 +28,7 @@ vhost_parts.each do |vhost_part| -%> <% if ssl_mode == 'force' && vhost_part == :normal -%> RewriteEngine On RewriteCond %{HTTPS} !=on + RewriteCond %{HTTP:X-Forwarded-Proto} !=https RewriteRule (.*) https://%{SERVER_NAME}$1 [R=permanent,L] <% else -%> <%= scope.function_templatewlv([template_partial, {'vhost_part' => vhost_part } ]) %> |