ソースを参照

Change force https to respect aliases

Alexandros Ioannides 6 年 前
コミット
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
 # Insert redirect commands
 if [ ! -z $PROXY ]; then
 if [ ! -z $PROXY ]; then
-    echo 'return 301 https://$server_name$request_uri;' > $forcessl
+    echo 'return 301 https://$host$request_uri;' > $forcessl
 else
 else
     echo 'RewriteEngine On' > $forcessl
     echo 'RewriteEngine On' > $forcessl
     echo 'RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]' >> $forcessl
     echo 'RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]' >> $forcessl