Put the localhost Host config at the end of the Hosts. There was a problem with the virtual host selection that would match localhost before looking at all other hosts. This is fixed in the 3.2 and 3.0 branches so you could try building from that as well.
Thanks for the advice. It worked a treat!