File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,7 @@ chmod 751 $HESTIA/data/templates/web/unassigned/js
101101chmod 751 $HESTIA /data/templates/web/unassigned/webfonts
102102
103103# Add unassigned hosts configuration to nginx and apache2
104- if [ " $WEB_BACKEND " = " php-fpm" ]; then
105- echo " (!) Unassigned hosts configuration for Apache not necessary on PHP-FPM installations."
106- elif [ " $WEB_BACKEND " = " apache2" ]; then
104+ if [ " $WEB_SYSTEM " = " apache2" ]; then
107105 echo " (*) Adding unassigned hosts configuration to apache2..."
108106 if [ -f /usr/local/hestia/data/ips/* ]; then
109107 for ip in /usr/local/hestia/data/ips/* ; do
@@ -113,7 +111,8 @@ elif [ "$WEB_BACKEND" = "apache2" ]; then
113111 sed -i ' s/directIP/' $ipaddr ' /g' /etc/apache2/conf.d/$ipaddr .conf
114112 done
115113 fi
116- elif [ " $PROXY_SYSTEM " = " nginx" ]; then
114+ fi
115+ if [ " $PROXY_SYSTEM " = " nginx" ]; then
117116 echo " (*) Adding unassigned hosts configuration to nginx..."
118117 if [ -f /usr/local/hestia/data/ips/* ]; then
119118 for ip in /usr/local/hestia/data/ips/* ; do
You can’t perform that action at this time.
0 commit comments