What happens when you attempt to ping "dev.example.com"? Does it resolve to an IP address at all? If so, is it the IP address of the Apache server?
In this case, I suspect you will need to configure a new "dev.example.com" record in DNS (or at least in /etc/hosts) so that your workstation knows where that DNS is supposed to go.