CiviCRM dashboard redirects

In a vagrant vm, opening CiviCRM redirects to ISP page.

Made sure php5-curl is installed via apt-get install.
In the linux box, appended to the file /etc/hosts the apache server names, example:

/etc/apache2/sites-available/ has


and my Vagrantfile has "private_network", ip: "".

So my /etc/hosts should have

Voila. CiviCRM dashboard no longer redirects.