Apache SubDomain Problems
I've set up a 2nd VM which is hosting an application with a web GUI. I've updated the conf file within apache to use pay.adamsitsolutions.co.uk and i believe i've correctly set up my DNS within Linodes Domains portal. I have the 'pay' A record set to the IP of the VM and an A record of adamsitsolutions.co.uk pointed to the VM's IP. However, whenever i save the config and re-load apache the site just wont respond. If i ping pay.adamsitsolutions.co.uk it corresponds to the correct IP. So i'm guessing something must be wrong within apache?
I have another VM which is where my main site is hosted using a different IP on a different VM but i doubt this would be causing the problem?
If your DNS records properly propagated to point your domain to your Linode's IP, then likely the issue lies within your Apache configuration.
It's tough to pinpoint the issue without additional information/visibility, but I'd recommend reviewing your virtual hosts file to ensure everything is in order. Remember that you'll need to enable the conf file and restart Apache so that the updates you make can take hold.
The below guide is for an Apache install on Debian 10 but the guidance will be roughly the same if that's not your distro:
Make sure the default config is disabled:
sudo a2dissite 000-default.conf
Review the conf file & make changes if necessary:
Enable the site:
sudo a2ensite pay.adamsitsolutions.co.uk.conf
sudo service apache2 restart