Setting up DNS + NGINX properly to Internal Services reddit / selfhosted ---------------------------------------------------------------------- Lawson470189 · 2023-11-29 17:31 Hi r/selfhosted. I am working on setting up my selfhosted setup. I have 8 machines, old Dell Optiplex 7040 SFF, set up with Proxmox. They seem to work properly internally, but I want to expose some services externally (Seafile). I own a domain, but for this I'll just use [mydomain.com](https://mydomain.com). I'm having trouble understanding how I should set up my DNS records for this. How I want my network function: * [internal.mydomain.com](https://internal.mydomain.com) \-> points to my NGINX proxy manager instance * I have this done with port forwarding and an A record to my external IP * [seafile.internal.mydomain.com](https://seafile.internal.mydomain.com) \-> proxies my seafile instance * I have a record in NGINX proxy manager to point [seafile.internal.mydomain.com](https://seafile.internal.mydomain.com) to [192.168.1.30:80](https://192.168.1.30:80) When I hit [internal.mydomain.com](https://internal.mydomain.com), I see the NGINX proxy manager success page, but when I hit [seafile.inte rnal.mydomain.com](https://seafile.internal.mydomain.com), I get a 404 back. Can anyone help my to understand how I should set this up properly? ---------------------------------------------------------------------- _CottonEyeHoe_ · 2023-11-29 20:00 Have you created a DNS record for [seafile.internal.mydomain.com](http s://seafile.internal.mydomain.com)? The A record for [internal.mydomain.com](https://internal.mydomain.com) will not automatically include subdomains. ---------------------------------------------------------------------- Lawson470189 · 2023-11-29 20:04 Ah that may be where it is failing. I don't have a specific DNS record for it. What type of record would I need and what should it point to? Or is there a way to have a wildcard? ---------------------------------------------------------------------- _CottonEyeHoe_ · 2023-11-29 20:10 You would create it in the same way you created the [internal.mydomain.com](https://internal.mydomain.com) record, except you replace "internal" with "seafile.internal" under under host. If you want you can also setup a wildcard DNS record by putting "\*" in the host section of the A record. ---------------------------------------------------------------------- Lawson470189 · 2023-11-29 20:22 Freaking awesome. I was able to setup an A record with that wild card. Thanks for the help! ---------------------------------------------------------------------- _CottonEyeHoe_ · 2023-11-29 21:08 No worries, glad to help!