Subdomain routes to local IP Address

Hi all,

I have a self-hosted ubuntu server and I am attempting to set it up for my dads self-employed business. I have managed to setup WordPress for the main domain of colemanhoskin.co.uk. I have then created a sub-server of invoice.colemanhoskin.co.uk my intention is to us invoiceplane which is installed correctly in the subdomain root folder. The issue I am facing is when I try to navigate to invoice.colemanhoskin.co.uk/index.php/setup I end up getting sent to in the internal IP address of my server on 19291168.1.41/index.php./welcome.

another issue I face is when I go to invoice.colemanhoskin.co.uk it navigates me to colemanhoskin.co.uk .

Can you offer any advice as to what I have configured wrong? I believe it something in apache but I can’t identify it.

Many thanks in advance,
Sam

My DNS records are:
Name Type TTL Data
@ A 1h 86.30.8.57
@ CAA 1h 0 issue “letsencrypt.org