|
|
@@ -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
|