fíam

(rhymes with liam)

  • Intrepid Ibex will break your VirtualHost

    Oct. 31, 2008 at 13:56:49 CET

    After upgrading the server hosting this blog to Intepid Ibex, I discovered all my VirtualHost weren't working. Since I couldn't find any solution searching in Google, my next approach was downloading the older apache2 package and doing a diff between the supplied configurations.

    It seems Debian developers decided to change this line in ports.conf:

    NameVirtualHost *
    

    To this:

    NameVirtualHost *:80
    

    This means your VirtualHosts declared with <VirtualHost *> (or <VirtualHost x.y.z.t>) will no longer work. For restoring them, change the following:

    <VirtualHost *>
    

    To:

     <VirtualHost *:80>
    

    Or, alternativelly, cd to /etc/apache2/sites-available/ and execute the following command:

    sudo perl -pi -e 's/\<VirtualHost([^\:]+)\>/\<VirtualHost $1:80\>/' *