diff --git a/bin/expl_create_vhost.sh b/bin/expl_create_vhost.sh index a245cf1..10b7f59 100755 --- a/bin/expl_create_vhost.sh +++ b/bin/expl_create_vhost.sh @@ -86,7 +86,7 @@ fi source ${NC_EXPL_CFG}/init.conf -IP_ADDR=$(host ${domain} | rev | cut -d' ' -f1 | rev) +IP_ADDR=$(host ${backend_host} | rev | cut -d' ' -f1 | rev) IS_PRESENT=$(grep -E ^${DOMAIN}$ ${DEHYDRATED_DOMAIN_LIST} | wc -l) REMOTE_HTTP_PATH=${backend_host}:${HTTPD_PATH} REPLACE_DOMAIN="s/SITE_NAME/${domain}/g"