How to only have nextcloud snap listen to my subdomain?

Hi everyone! I just recently set up an old-ish laptop to use as a cloud server and it’s working wonderfully! The only problem I’m having is that I want to use my main domain www.domain.tld but it keeps showing that the domain is not trusted. The domain I use for nextcloud is cloud.domain.tld. How can I have it to where it only shows on cloud.domain.tld and nothing else? I’m using the snap version on Debian 10 if that helps y’all.

Can’t tell about snap, my nextcloud is straight on the bare machine. What you have to do: set up your virtual hosts right. Set up https. You can have as much services on your machine as you want, even multiple nextcloud instances. Each needs its own subdomain and virtual host.