Update Ngnix to a new port handling functions