Skip to content

Commit 08e8255

Browse files
Change force https to respect aliases
1 parent cf1bef4 commit 08e8255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fi
5757

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

0 commit comments

Comments
 (0)