Sfoglia il codice sorgente

Change force https to respect aliases

Alexandros Ioannides 6 anni fa
parent
commit
08e8255f64
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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