File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 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.
5555 forcessl=" /home/$user /conf/web/forcessl.apache2.$domain .conf"
5656fi
5757
58- # Check if force ssl already exists
58+ # Check if force SSL already exists
5959if [ -f " $forcessl " ]; then
60- echo " Error: rewrite already enabled"
60+ echo " Error: Rewrite is already enabled"
6161 exit $E_EXIST
6262fi
6363
64- # Place rewrite commands
64+ # Insert rewrite commands
6565if [ ! -z $PROXY ]; then
6666 echo ' return 301 https://$server_name$request_uri;' > $forcessl
6767else
7474# Hestia #
7575# ----------------------------------------------------------#
7676
77- # Restarting web server
77+ # Restart web server
7878$BIN /v-restart-web
7979check_result $? " Web restart failed" > /dev/null
8080
81+ # Restart proxy
8182$BIN /v-restart-proxy
8283check_result $? " Proxy restart failed" > /dev/null
8384
You can’t perform that action at this time.
0 commit comments