Would be glad if someone could help me with my specific problem or even lead me to the right or better direction. I will now explain my problem:
I have a domain at a hoster and I can also assign a SSL certificate to it.
Instead of uploading my web content through the FTP to the web server which is included (I bet there is some Apache running in the background), I would rather use a golang web server which I can deploy on a root server.
The root server I have, has a static IP.
If I enable my SSL certificate and go to the domain everything is fine (secured symbol appears).
But I do want now all the traffic which comes to my domain to be forwarded to my root server web service which is only represented by the static IP.
So going in the menu, I can then redirect the traffic from e.g. "my-fancy-domain.com" to the static IP by saying: forward to e.g. https://123.123.123.123
But obviously you will then get a browser warning which says that the server could be hijacked by a MITM attack since I have issued the cert by myself.
How can I solve this issue to have domains pointing over a secured service to my static IP Webserver?