L
L
Leonid Fedotov2017-01-03 21:01:05
Computer networks
Leonid Fedotov, 2017-01-03 21:01:05

How to forward a domain to a virtual machine in Windows Server 2012 R2?

There is a server on Windows Server 2012 R2, the Internet is attached to it. The server is configured - running and serving a specific domain (ports 80 and 443) on the network. Recently, it became necessary to add a virtual machine to this server and assign it to another domain (and also ports 80 and 443). Actually, what to do, where to dig? I thought that the matter was in the DNS configuration in AD (add another domain and direct it to the local address of the virtual machine), but I turned out to be wrong, this did not work. I understand that I am fundamentally trying to break the logic of WS operation, that what is spinning on the server and is available, for forwarding to a virtual machine, you need to install NGNIX in relay mode and dance with a tambourine there, but is there a simpler solution?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2017-01-03
@CityCat4

It would be desirable to specify - "domain" is the AD domain or the domain from the point of view of DNS? You have here a few "horses mixed up in a bunch, people." If you need another site - create a virtual host, if you have IIS (once Windows) - he should be able to do this. If you absolutely need a virtual machine - well, run the Hyper-V role, create a virtual machine with Windows, but then you need someone who would resolve requests for ports 80/443

G
Godless, 2017-01-18
@Godless

If you really need a new domain (DNS + AD) + port forwarding in the virtual machine, make another IP in the virtual machine, without NAT. Also it will be to you as if 2 servers stand nearby. + scalable and easily portable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question