Apache SubDomain Problems

Hello,

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?

TIA

Darren

1 Reply

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:

https://www.linode.com/docs/guides/how-to-install-apache-web-server-debian-10/#configure-virtual-hosting

Make sure the default config is disabled:

sudo a2dissite 000-default.conf

Review the conf file & make changes if necessary:

cat /etc/apache2/sites-available/pay.adamsitsolutions.co.uk.conf

Enable the site:

sudo a2ensite pay.adamsitsolutions.co.uk.conf

Restart Apache:

sudo service apache2 restart

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct