Hello again!
I have recently decided to experiment with virtual hosts on my local server, and come to find the following issue:
I have 2 virtual hosts set up now, www.mysite1.com and www.mysite2.com. In order to accomplish this, I first created new users on the system named mysite1 and mysite2 (for simplicity). Each user has a /home/user/htdocs directory which is where the page files should live. Then I edited /etc/apache2/conf.d/virtual.conf and added the line
Then I created a virtual site for each host:
/etc/apache2/sites-available/mysite1.com
/etc/apache2/sites-available/mysite2.com
and finally enabling the sites:
sudo a2ensite mysite1.com
sudo a2ensite mysite2.com
After restarting apache, I was expecting my virtual hosts to be enabled so I threw a different index.html page in each htdocs file... now when I call www.mysite1.com in my browser it works fine, but when I call www.mysite2.com, it shows the html for mysite1! Even more strange, is that when I call www.mysite2.com/info.php it displays that of mysite1 even though there is no info.php in the /home/mysite2/!
Please help me understand what I'm missing!