resolve nginx APIs difference