Nginx bugfixes