I just updated from Ubuntu 8.04 to the newest version and all of a sudden my virtual hosts don't work anymore. I'm not sure what changed, but I know when I type in localhost it doesn't go to the directory that I would expect (probably the default /var/www/ but that's not where I keep my projects) and typing in the name of one of my virtual hosts takes me to the same place. How do I get it working again?
| |||
|
feedback
|
|
You may have added your virtual hosts to | |||
|
feedback
|
|
Turns out the update sort of reset things back to default. Here's what I did to get it to work (This worked for me on Ubuntu 9.10 Karmic Koala):
Bonus! If you want to get rid of that message that says "Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" you can create a config file in
For more information, check out setting up Apache, PHP, and MySQL on Ubuntu. | |||
|
feedback
|
|
I don't have an Ubuntu-specific answer for you, but you just need to check your httpd.conf for the DocumentRoot and set it as needed. Unless your vhost configs got wiped, then you'd need to recreate them. | |||
|
feedback
|
|
This could be DNS related as well. So what does it say when you say specifically http://localhost%3A// | |||
|
feedback
|