Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKAN/Vagrant port forwarding

Tags:

vagrant

ckan

I created a vagrant box and installed ckan inside of it.

In the vagrantfile - i set up port forwarding to 4567 - so when in my browser i type

127.0.0.1:4567

I get to ckan inside the virtual box.

The problem is that now - when i do some actions in ckan like update my profile - I get redirected to

http://127.0.0.1/user/mirmir 

which gives me an error of "Not Found - The requested URL /user/mirmir was not found on this server."

If i manually insert the :4567 so it becomes

 http://127.0.0.1:4567/user/mirmir

everything works.

Any idea how to fix this?

like image 550
mireille raad Avatar asked Sep 24 '13 22:09

mireille raad


Video Answer


1 Answers

You should probably be doing this with a private network: http://docs.vagrantup.com/v2/networking/private_network.html

Once you have added the IP address into your Vagrantfile like this:

config.vm.network "private_network", ip: "192.168.50.4"

You should reload vagrant and be able to browse to 192.168.50.4, there should now be no problems because you will not need to use a port in the URL.

like image 63
Matt Cooper Avatar answered Oct 01 '22 20:10

Matt Cooper