Subdomains of different sites. Each with own tunnel. Possible?

What is the name of the domain?

site1.bohrstaarn.dk , site2.bohrstaarn.dk

What is the issue you’re encountering

How to set it up

What steps have you taken to resolve the issue?

None yet, since I don’t know how to set it up.

What are the steps to reproduce the issue?

Assume I have 2 sites within the org, each having their own subdomain. site1.mydomain.com and site2.mydomain.com.
I would like to run the same service on both sites (each is a different physical machine on a different network and and thereby different WAN addresses).

I would then like two tunnels on site1.mydomain.com and site2.mydomain.com each accessing the two machines, but ultimately using the same root domain name.

So: Two tunnels with different end-point addressed by two sub-domains under same domain name.

Can I down that? And how… ?

From my understanding, it is possible yes.

Currently, since I’ve got the same or similar case, one main domain, two public services, two sub-domains (for each one), two Raspberry Pi devices which are dislocated inside the separate buildings on a different VLAN, therefrom I’ve created via ZT Dashboard and am running two tunnels separately for each sub-domain/RPi device.

Sounds like you’d want to have and use a Load Balancer in between for such case? Could be I am wrong :thinking:

Tryige to coonecy two homeassistant installations (different appartments) under the same domain (name og building).

Figured it out…

Just list ApoartmentA.mydomain.com as the homeassistent domain, but enable advanced features and give it a unique tunnel name.

Then add AppartmentB using the same method.

Voila, two automatically maintained tunnels on two independently IP addresses.

The “root domain” has no tunnel, but one could easily be created.