I am paying for a Virtual Private Server with Linode. I recently set it up with apache to host two different websites. Now that I've added the sites, I can no longer access my index.html file at /var/www/
. For some reason, my IP address points to the last site that I configured. Is there any way that I can have my sites point to their public folders, and my IP address point to the /var/www/
folder like it was when I set it up? I tried searching for an answer, but found nothing; perhaps I'm not sure what to search for.
Update
I realize that after going through the linode steps to hosting a website I deactivated the default file which pointed to the /var/www/
directory:
sudo a2dissite default
So I enabled it with
sudo a2ensite default
sudo service apache2 restart
This made the IP address serve up the files in the desired directory, but now the first site I enabled/configured also serves up the same default files (and no longer the site's files, as specified in /etc/apache2/sites-available/
).
How can I have all three virtual hosts? Two name-based, and one IP-based?