'Multiple Subdomains, Multiple (v)Servers, single IPv4

I have a problem.

I want do have serval subdomains for different servers. But I have only one (1) IP-Address. I want to have one subdomain per server, if possible. And I sm not only using port 80/443, port 3389 or 22 too ;-).

I have allready looked for an Apache VirtualHost config template for my problem, but after some endless hours I had no success at all.

A concept I want to realize: sub1.domain.tld -> LAN-Address 10.0.0.10 sub2.domain.tld -> LAN-Address 10.0.0.11 …

Can someone help me out of this problem?

OS: Windows and/or Linux Network (LAN): nothing special so far (private network in Germany) There are no limitations on how many (v)servers I use.

If you need more informations, feel free to ask.

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source