How can I create a virtualhost with vagrant and see it in a local network?
In my vagrant box I have ubuntu and apache and I have already managed to create a VirtualHost, but the problem is that I can not get it to be seen in the local network from another computer; if someone puts the ip address if it is seen, but if someone puts the name of the virtualhost (for example: prueba.com
) nothing is seen, only the default page of the browser is seen that there was an error when trying to connect.
How can I solve it? since in my Vagrantfile I already put the sentence of:
config.vm.network "public_network"
and nothing happens. If I modify the file hosts
of my physical pc, if I can see it, but obviously you do not have to change the hosts of each machine that wants to see the page.