N
N
Nikita2014-05-13 12:44:30
Debian
Nikita, 2014-05-13 12:44:30

How to configure access from the Host OS to the web server configured in the guest OS?

We have a Host machine on Ubuntu, VirtualBox is installed on it, Debian 7 is running in the guest machine. The next task is to raise Nginx and several projects in Debian and make it possible to get to these local projects in the guest machine using the URL from the host. By http, of course.
Many will ask why there are so many perversions, if I have Ubuntu installed and everything can be downloaded right there, I answer:
1) I work on several machines with different OS, transferring the image of already configured projects is much easier than configuring them on each machine.
2) Helping newly arrived colleagues, installed the system, copied the image of the virtual machine, launched it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2014-05-13
@FranklinDKitamory

In the network settings of the virtual machine, set NAT, then forward the ports in the same place.
In /etc/hosts write lines like this:
127.0.0.1 domain1
127.0.0.1 domain2
Fsio.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question