File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ source $VESTA/conf/vesta.conf
2424# Defining htpasswd file
2525htaccess=" $HOMEDIR /$user /conf/web/$WEB_SYSTEM .$domain .conf_htaccess"
2626htpasswd=" $HOMEDIR /$user /conf/web/$WEB_SYSTEM .$domain .htpasswd"
27+ shtaccess=" $HOMEDIR /$user /conf/web/s$WEB_SYSTEM .$domain .conf_htaccess"
28+ shtpasswd=" $HOMEDIR /$user /conf/web/s$WEB_SYSTEM .$domain .htpasswd"
2729docroot=" $HOMEDIR /$user /web/$domain /public_html"
2830
2931
@@ -75,15 +77,15 @@ chgrp $user $htpasswd $htaccess
7577sed -i " /^$auth_user :/d" $htpasswd
7678echo " $auth_user :$auth_hash " >> $htpasswd
7779
78- ln -s " $HOMEDIR /$user /conf/web/$WEB_SYSTEM .$domain .conf_htaccess" " $HOMEDIR /$user /conf/web/s$WEB_SYSTEM .$domain .conf_htaccess"
79- ln -s " $HOMEDIR /$user /conf/web/$WEB_SYSTEM .$domain .htpasswd" " $HOMEDIR /$user /conf/web/s$WEB_SYSTEM .$domain .htpasswd"
80+ # Symbolic link for secure web templates
81+ ln -s $htpasswd $shtpasswd
82+ ln -s $htaccess $shtaccess
8083
8184# Restarting web server
8285if [ " $restart " != ' no' ] && [ " $restart_required " = ' yes' ]; then
8386 $BIN /v-restart-web
8487fi
8588
86-
8789# ----------------------------------------------------------#
8890# Vesta #
8991# ----------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments