Change/modify shared Link

Hi I Host my own Cloud on my private Server. so my way of reaching the Server is https://cloud
If I share a Document via Link it will be:
https://cloud/index.php/s/kxxoaoB6io6jmBx

Is it possible to change the shared link by default so its more like
https://cloud.Domain.com/index.php/s/kxxoaoB6io6jmBx
without the need of reaching the cloud via cloud.Domain.com

so i can send it to friends without the need of changing the link manually?

Thanks in advance

From what i have observed in the past the links will be created based on the URL you’re using to access ownCloud. So if you’re accessing it via https://cloud.domain.com/ the shared link would be generated as https://cloud.Domain.com/

Correct
BUT the Server has its own Public IP on my Internetgateway so internally i cant reach cloud.domain.com because my Gateway would say DNS Loopback detected so i have to use just cloud