Browse Source

Fix links to paths in v-add-mail-domain-ssl-force

Kristan Kenney 7 years ago
parent
commit
5df99d804a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bin/v-add-mail-domain-ssl-force

+ 2 - 1
bin/v-add-mail-domain-ssl-force

@@ -59,12 +59,13 @@ fi
 # Insert redirect commands
 # Insert redirect commands
 if [ ! -z $PROXY ]; then
 if [ ! -z $PROXY ]; then
     echo 'return 301 https://$server_name$request_uri;' > $forcessl
     echo 'return 301 https://$server_name$request_uri;' > $forcessl
+    ln -s $forcessl /etc/$PROXY_SYSTEM/conf.d/domains/$WEBMAIL_ALIAS.$domain.forcessl.conf
 else
 else
     echo 'RewriteEngine On' > $forcessl
     echo 'RewriteEngine On' > $forcessl
     echo 'RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]' >> $forcessl
     echo 'RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]' >> $forcessl
+    ln -s $forcessl /etc/$WEB_SYSTEM/conf.d/domains/$WEBMAIL_ALIAS.$domain.forcessl.conf
 fi
 fi
 
 
-
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                       Hestia                             #
 #                       Hestia                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#