fixing some breakages with nginx for cos7