We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5022278 commit 5df99d8Copy full SHA for 5df99d8
bin/v-add-mail-domain-ssl-force
@@ -59,12 +59,13 @@ fi
59
# Insert redirect commands
60
if [ ! -z $PROXY ]; then
61
echo 'return 301 https://$server_name$request_uri;' > $forcessl
62
+ ln -s $forcessl /etc/$PROXY_SYSTEM/conf.d/domains/$WEBMAIL_ALIAS.$domain.forcessl.conf
63
else
64
echo 'RewriteEngine On' > $forcessl
65
echo 'RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]' >> $forcessl
66
+ ln -s $forcessl /etc/$WEB_SYSTEM/conf.d/domains/$WEBMAIL_ALIAS.$domain.forcessl.conf
67
fi
68
-
69
#----------------------------------------------------------#
70
# Hestia #
71
0 commit comments