When upgrading from one version of Linux (Ubuntu in my case) to another or while transferring your websites to a clean install it is common to encounter the following warning while starting/restarting apache:
NameVirtualHost *:80 has no VirtualHosts
This happens when hosts are defined in both /etc/apache2/sites-available/default as well as /etc/apache2/ports.conf.
Comment out the the following lines in /etc/apache2/ports.conf:
#NameVirtualHost *:80 #Listen 80
Then restart your apache using the following command and you should not see the warning.
sudo /etc/init.d/apache restart
IPVanish VPN Exclusive Offer - only $3.99 per month:
Windows, Android, Ubuntu
OSMC on RPi
♦ Hide your browsing (no logs), Anonymize Streaming and Downloads
♦ Circumvent Geo/Country Restrictions and access worldwide content
♦ Works on Windows, Mac, Linux, Android, iOS, Router, and more
♦ 250 GB of SugarSync Secure storage included
♦ Money back guarantee - Sign Up Now