I new to Ubuntu and setting up Apache. I just want to set this up for local development. I have found a plethora of information but some of it is contradictory or confusing. I started with a fresh install and now that I've messed with it, Apache is throwing errors when I try to start it.
Can someone give me a simple, step-by-step approach to setting up Virtual hosts on Ubuntu from scratch? Which files do I need to edit? Which commands do I need to run?
Update #1: Specifically, the error that I'm getting is this:
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [Fri Oct 09 11:32:38 2009] [error] VirtualHost sitename:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
Then it says [ Ok ], so does that mean that mean the errors don't really matter? I can open up my browser, type the name of the virtual host, and the right site pops up. But I also get the same thing when I type in localhost.
Update #2: I think I fixed the "mixing ports" error. One tutorial told me to add a line to my apache2.conf file and I don't think I needed to. So I removed it, and the error went away. I'm still getting the error about not being able to determine the fully qualified domain name. What does this error mean? It seems to be working okay. But when I type localhost it still shows the other site. Do I need to create a virtual host for localhost?