ensure that nginx has right configuration before starting