Forward a domain name to a VM

Munshine

New Member
Nov 5, 2017
7
0
1
34
Hello !
Here is the situation:

I have a dedicated serveur at So You Start, and a few domain names at OVH.
On my dedicated server, I have proxmox VE installed, with 3 VM.
  • One for my cloud applications (Nextcloud....)
  • One for my websites (LAMP)
  • One for testings
Now, I'd like to redirect one of my domain names to the first vm and two domain names to the second.
I've already edited the A record in the DNS zone for all my domain name to point at my dedicated server's IP. Am I correct so far ? And then what should I do on my dedicated server to redirect the domain name to the VM ?

And also, how does it work when I want to create something like http://documents.example.com, where do I set this ?

Sorry for the silly questions, I'm quite new to all this sysadmin thing !

Thanks
 
Sorry for the silly questions, I'm quite new to all this sysadmin thing !

No shit. new doesnt even get the full scope of your newiness :)

ok for basic understanding
you dont redirect a DNS entry - a DNS entry is a redirect

it redirects from a name to an IP

now in order for peopel to reach anything you need to either have
-a dedicaded ip for each reachable vm
-or if you have only one ip - redirect ports on the host ext ip to the internal ip/port combo on the vhost

however, maybe someone here is willing to go with your trough step by step.
but i recommend learn the basics, read the docs and wikis
 
  • Like
Reactions: Munshine
portforward too, in any case he need to have a network first. reverse proxy needs another vm with a reverse proxy because you do not want to install anything along promox if you can prevent it