how to have nextcloud/vaultwarden/adguard together

Hi people
I would like to know how can I have adguard with nextcloud and vaultwarden or would I have to use pihole?

I followed this forum thread and I have my domain /nextcloud and /vault
could i create a /adguard or even just mydomain instead of opening Lighttpd?

https://dietpi.com/forum/t/confused-reverse-proxy-and-vaultwarden/5762/45

You mean to add AGH to the reverse proxy? Theoretically this should be possible.