From 54ef6514d51fa375c60a969b3d1452bfe6346ba1 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 26 Mar 2019 17:10:32 -0400 Subject: [PATCH] fix: turn off error logging for validate config This will allow validation to work if the default logging locations cannot be written to but the configuration is otherwise okay. This will be the case for users with custom nginx configurations that log to other places, such as syslog. --- plugins/nginx-vhosts/templates/validate.conf.sigil | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/templates/validate.conf.sigil b/plugins/nginx-vhosts/templates/validate.conf.sigil index 232fd6d51..cb6a556c5 100644 --- a/plugins/nginx-vhosts/templates/validate.conf.sigil +++ b/plugins/nginx-vhosts/templates/validate.conf.sigil @@ -1,2 +1,6 @@ events { worker_connections 768; } -http { include {{ $.NGINX_CONF }}; } +http { + access_log off; + error_log /dev/null; + include {{ $.NGINX_CONF }}; +}