CiviCRM Dashboard Redirects

Published: Mar 26, 2017

CiviCRM 4.6.4 in vagrant with apache.

Opening the CiviCRM dashboard auto redirects to an ISP page. Turns out the site cannot call itself. Vagrantfile has

  # Create a private network, which allows host-only access to the machine
  # using a specific IP.
  config.ssh.forward_agent = true
  config.vm.network "private_network", ip: "29.29.29.29"

To solve, edit the vm’s /etc/hosts and in addition to the 127.0.0.1 localhost, add the Vagrantfile’s private_network ip:

echo '
29.29.29.29 www.donate.site
29.29.29.29 donate.site
' | sudo tee /etc/hosts > /dev/null
Last modified: September 8, 2017 1:25 pm
Posted in: Snippets