CKAN / Vagrant Port Forwarding

I created a firewall and installed ckan inside it.

In vagrantfile - I configured port forwarding to 4567 - so when in my browser I type

127.0.0.1:4567 

I get ckan inside a virtual window.

The problem is that now - when I do some actions in ckan, for example, update my profile - I am redirected to

 http://127.0.0.1/user/mirmir 

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

If I manually insert: 4567, it becomes

  http://127.0.0.1:4567/user/mirmir 

everything works.

Any idea how to fix this?

+6
source share
1 answer

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

Once you have added the IP address to your Vagrantfile as follows:

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

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

+4
source

Source: https://habr.com/ru/post/954538/


All Articles