Virtualhosts Stop Working After Upgrade [Ubuntu]

Virtualhosts Stop Working

Post upgrade to Apache. For Ubuntu servers.

 

If you have recently updated Apache from 2.x to 2.4 on Ubuntu, you may have found that your named virtualhosts stopped working.

The fix is a simple procedure, do these for each of your virtual hosts in /etc/apache2/sites-available/:

  1. Add .conf to each site’s filename
    sudo mv sprisemedia sprisemedia.conf
  2. Enable this site again in Apache
    sudo a2ensite sprisemedia.conf

Do this for all your virtualhosts and restart Apache.

 

 

High Five me by sharing: Pin on PinterestTweet about this on TwitterShare on LinkedInShare on FacebookShare on Reddit

Last updated on