Skip to content

Commit 46a99b0

Browse files
Update v-add-web-domain-ssl-force
1 parent d9bf8ef commit 46a99b0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bin/v-add-web-domain-ssl-force

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# info: adding ssl force to domain
2+
# info: Adding force SSL for a domain
33
# options: USER DOMAIN
44
#
55
# The function forces SSL for the requested domain.
@@ -55,13 +55,13 @@ else
5555
forcessl="/home/$user/conf/web/forcessl.apache2.$domain.conf"
5656
fi
5757

58-
# Check if force ssl already exists
58+
# Check if force SSL already exists
5959
if [ -f "$forcessl" ]; then
60-
echo "Error: rewrite already enabled"
60+
echo "Error: Rewrite is already enabled"
6161
exit $E_EXIST
6262
fi
6363

64-
# Place rewrite commands
64+
# Insert rewrite commands
6565
if [ ! -z $PROXY ]; then
6666
echo 'return 301 https://$server_name$request_uri;' > $forcessl
6767
else
@@ -74,10 +74,11 @@ fi
7474
# Hestia #
7575
#----------------------------------------------------------#
7676

77-
# Restarting web server
77+
# Restart web server
7878
$BIN/v-restart-web
7979
check_result $? "Web restart failed" >/dev/null
8080

81+
# Restart proxy
8182
$BIN/v-restart-proxy
8283
check_result $? "Proxy restart failed" >/dev/null
8384

0 commit comments

Comments
 (0)