fixing gatway setting for ngnix controller