Please, check the Nginx version you have installed in your server: sudo nginx -v
Seems like you have an outdated version, you should have 1.14.0, if not you should update and upgrade Ubuntu: sudo apt update && sudo apt -y upgrade
And please, run this command frecuently, at least once a month to keep and mantain your server updated.