diff --git a/plugins/domains/internal-functions b/plugins/domains/internal-functions index e839d2f27..efc644d10 100755 --- a/plugins/domains/internal-functions +++ b/plugins/domains/internal-functions @@ -167,7 +167,11 @@ fn-domains-generate-url() { if [[ "$PORT" == "80" ]]; then echo "http://$VHOST" elif [[ "$PORT" == "443" ]]; then - echo "https://$VHOST" + if [[ "$SCHEME" == "https" ]]; then + echo "https://$VHOST" + else + echo "$SCHEME://$VHOST:$PORT" + fi else echo "$SCHEME://$VHOST:$PORT" fi