Fix generated nginx config when NO_VHOST=1

Fixes #1625
This commit is contained in:
Loïc Guitaut
2015-11-02 19:08:41 +01:00
parent de29abdab6
commit 804c822ace

View File

@@ -254,6 +254,7 @@ EOF
eval "cat <<< \"$(< $NGINX_TEMPLATE)\" >> $NGINX_CONF"
fi
if [[ "$(is_app_vhost_enabled $APP)" == "false" ]] || ([[ -z "$NONSSL_VHOSTS" ]] && [[ -z "$SSL_VHOSTS" ]]); then
eval "cat <<< \"$(< $NGINX_TEMPLATE)\" >> $NGINX_CONF"
sed --in-place -n -e '/^.*server_name.*$/!p' $NGINX_CONF
fi