diff --git a/healthcheck/common.sh b/healthcheck/common.sh index 300b50b49..e6c5f68d9 100755 --- a/healthcheck/common.sh +++ b/healthcheck/common.sh @@ -128,7 +128,7 @@ get_url_from_vhost () { server_name=$(awk '/ServerName/ {print $2}' $vhost_file) ssl_enabled=$(awk '/SSLEngine/ {print $2}' $vhost_file) bind_port=$(grep -h "" $vhost_file | sed 's//\1/') - wsgi_alias=$(awk '/WSGIScriptAlias/ {print $2}' $vhost_file) + wsgi_alias=$(awk '/WSGIScriptAlias / {print $2; exit}' $vhost_file) proto=http if [[ $ssl_enabled == "on" ]]; then proto=https