How to redirect your domain to your vm in your homelab
Stop paying for hosting and be independent
In this example, we'll use Traefik and squareSpace.
In your host's DNS settings, we'll redirect the domain to the desired IP address (the public IP address of your Internet box).
In my example, I want to redirect www.domainname.com to the public address of my Internet box.
you then need to redirect port 443 and 80 on your Internet box panel to the IP address of your reverse proxy, in this case Traefik.
then in its configuration file correspond to traefik to redirect the domain name to an ip address the configuration is as follows.
in server -url put the vm's ip address and in rule="Host". Set the domain name you're listening to, which will redirect to the right vm.
it works pretty much the same for other reverse proxies. you just have to map the right url with the right ip address.