Просмотр исходного кода

Change force https to respect aliases

Alexandros Ioannides 6 лет назад
Родитель
Сommit
08e8255f64
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-add-web-domain-ssl-force

+ 1 - 1
bin/v-add-web-domain-ssl-force

@@ -57,7 +57,7 @@ fi
 
 # Insert redirect commands
 if [ ! -z $PROXY ]; then
-    echo 'return 301 https://$server_name$request_uri;' > $forcessl
+    echo 'return 301 https://$host$request_uri;' > $forcessl
 else
     echo 'RewriteEngine On' > $forcessl
     echo 'RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]' >> $forcessl