reconfiguring virtual hosts after upgrading to Apache 2.4.7 – what you need to change


global avocado

Once upon a time, I was running Apache 2.2.22. I had set up my virtual hosts by making up some fantasy domain names for each of my sites, such as drupal.kevin. I would then edit /etc/apache2/vhosts.conf to add information about my DocumentRoot, DirectoryIndex and CustomLog for each of my sites. Because I wanted to make sure they were always backed up properly, I kept my websites in my /home folder rather than /var/www/html, which meant I also needed a symlink from there to my websites directory. Lastly, I would add a line for every virtual host in /etc/hosts, such as

127.0.0.1 drupal.kevin

So far so good. Unfortunately, all that stopped working after upgrading from Ubuntu 12.04 LTS (Precise Pangolin) to 14.04 LTS (Trusty Tahr)…

Hopefully the following will save you from spending hours figuring out how to get your virtual hosts back…

View original post 611 more words