N
N
nixischev2014-03-10 17:39:12
linux
nixischev, 2014-03-10 17:39:12

Linux: how to "forward" domains from a virtual machine to a working machine?

Good day!
The problem is the following - there is a virtual machine (on the local machine) with its own domains / subdomains (for example: portal.local, forum.local, blog.local, etc.), you need to make the domains of the virtual machine accessible from the host machine, the question is how?
pS: preferably without "heavy artillery" in the form of DNS, you need something simpler and more "portable", because the virtual machine will have to be hosted on a ppS flash drive
: VMware VirtualBox 4.3

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
svd71, 2014-03-10
@nixischev

in the /etc/hosts file, write ip and domain name.

A
AgentSIB, 2014-03-10
@AgentSIB

nginx on the main machine, proxy_pass on the virtual machine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question