From 804c822ace560ed87b5e212ddee43a420cd272e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guitaut?= Date: Mon, 2 Nov 2015 19:08:41 +0100 Subject: [PATCH] Fix generated nginx config when NO_VHOST=1 Fixes #1625 --- plugins/nginx-vhosts/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index 49270ae9e..094832364 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -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