A
A
aba2010-10-28 15:26:23
Domain Name System
aba, 2010-10-28 15:26:23

How to open a site from a virtual machine, raised on a local server (on Denver), if there are several of them (sites)?

If only one site is up on the host, then you can get to it from under the virtual machine by IP address.

On the host, this is solved by referring to the domain name of the site, for example, for the main localhost, the second site1, the third site2, etc.

And how to open site1 and site2 domains from a virtual machine?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Matrozov, 2010-10-28
@aba

Have you tried fixing hosts for a non-virtual machine?

A
apangin, 2010-10-28
@apangin

It is necessary to make sure that in the guest OS different domain names are resolved to one IP address of the local server.
And how to do this - there are many options: raise a DNS server on the host, raise a DNS service in a virtual machine (although in theory the virtual machine should already provide DNS forwarding), or the simplest is to register site1 and site2 in the guest OS in / etc/hosts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question