update nginx method