I am trying to set-up some virtual hosts on a fresh install of Ubuntu 12.04 and not getting expected results. I am using this tutorial which I have used before without fail.
The challenge seems to come with restarting apache.
$> sudo service apache2 restart
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.1.1 for ServerName
.. waiting apache2: Could not reliably determine the server's fully qualified domain name, using
127.0.1.1 for ServerName
If I go through all of the steps, the alias I am trying to establish renders the root of localhost in my browser not the path set in sites available file.
Attempting to troubleshoot this, I removed the site with a2dissite and removed the site in /etc/hosts. Restarting apache as above, I receive the same error result. So it would appear something is not working properly in the first place, never mind attempting to add more hosts.
/etc/hosts content without additional hosts, rendering error messages found above:
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
Excerpt for the sites-available directory for lh-test_site
<Directory /var/www/test_site/ >
Options Indexes FollowSymLinks MultiViews
allow from all
Thanks for the input. Your advice helped and pointed out a flaw in the how-to I used to set-up all of the server aliases on my previous install of Ubuntu. Not one of those had a ServerName directive and they worked.