F
F
fdroid2017-08-30 00:12:49
Apache HTTP Server
fdroid, 2017-08-30 00:12:49

How to redirect a virtual host to a virtual machine?

Hello.
Given:
1. Server running Ubuntu Server 16.04, LAMP installed, site configured on the example1.ru domain
2. Static white IP that is tied to example1.ru
3. Another example2.ru domain
4. Virtualbox installed on the server.
5. Virtualbox has a configured machine with another site.
Required:
Configure so that there are two sites on the same IP, but at the same time, one site (example1.ru) must work on the server, and the second (example2.ru) in Virtualbox.
How to do it right? If I understand correctly, for example2.ru you need to create a virtual host that will redirect (how?) To a virtual machine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SolidMinus, 2017-08-30
@fdroid

I'm not a sys admin at all, so for the terms, please do not throw
VirtualBox in bridge mode, do it, it will "share" the IP address, make the internal shared. Further, the usual setting in Apache and despite the fact that one is on the server and the other is on the WB, it will be available under one IP.
And, yes, why such a fuck? It's not easier to do both on the host server, why wrap another one in VB? So only computing resources will devour more ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question