I have followed this tutorial to install LAMP, secure with SSL and install wordpress. (https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04) And have completed al...
I managed to "fix" this.
Google chrome had cached the website as my IP address.... I opened up chrome in incognito mode and it started to come up as my URL.
So it was working all along.
DAMN YOU CHROME!