Skip to content

Commit 16ed34e

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#283 from hestiacp/bugfix-nginx
Change force https to respect aliases
2 parents cf1bef4 + 08e8255 commit 16ed34e

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)