ignore bad conf file

Lukas Tribus luky-37 at hotmail.com
Wed Nov 4 16:03:06 UTC 2015

> Hi all, 
> Is there a way to configure nginx to ignore bad conf files?

No, that would lead to inconsistencies all over the place.

> My master nginx.conf has a include elsewhere/*.conf towards the end. 
> Other people and programs can drop new configs into "elsewhere" 
> directory. nginx reloads and all is great. Sometimes if one guy drops a 
> conf file with a typo or syntax error, nginx will refuse to reload all 
> other configs afterwards.

Nginx is supposed to roll back in this case [1], are your reloading (HUP)
or restarting?

In any case, testing the config first is what you should do.


[1] http://nginx.org/en/docs/control.html#reconfiguration


More information about the nginx mailing list