This is my first attempt at setting up virtual hosts in Apache. I am trying to set up the subdomain
My VPS had Apache already installed on it. In
/var/wwwthere was an
index.html file live and running. What I have done since is:
/var/www/main/which is now the default document root,
/var/www/test/which is the content to be served by my virtual host,
a2ensite test.mysite.comwith a successful message that the site is enabled,
service apache2 reloadto reload the server.
These are the first lines that I have modified in
<VirtualHost *:80> ServerName test.mysite.com ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/test ...
According to all the guides and tutorials I have found, the subdomain should now be up and running. But my browser can't find the page. Is there anything else I need to do to get my subsite up and running?
EDIT: SOLVED The answer had nothing to do with the apache configuration files. I just had to register the subdomain at my hosting provider. I will mark this as the answer when I'm allowed.