I spent about an hour scratching my head trying to figure out why my name based vhosts stopped working in Apache 2.4 after I setup Varnish. The answer was quite simple and I will freely admit my embarrassment in case it saves anyone else some time:
Don’t forget to update your vhosts so that this:
<VirtualHost *:8080> <substitute 8080 for whatever port you configured apache to listen on>
You’ll then need to reload your Apache config. Common sense, but it can be often overlooked.