Some things to watch out for when upgrading Apache from earlier versions (2.2 most likely) to version 2.4.
all entries under
/etc/apache2/sites-availablemust now end in
".conf". In addition, the commands
a2dissitetake the site name without
".conf"at the end. For instance, if you create a Virtual Host definition in file
foo.confyou should call
sudo a2ensite footo enable it.