this post was submitted on 10 Feb 2026
24 points (100.0% liked)

Selfhosted

56574 readers
634 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I am trying to host my first website + service.


#My server setup

I have a static webpage in server 1. A gotosocial installation in server 2. They are connected to a reverse proxy (server 3). This has a public IP of (not exact) 204.230.30.104.


#My router setup

I can open ports 80 and 443. I just don't know to which IP (I'll explain why down).


#My registrar

In have a domain, say 'newexample.com'. The @ has an A record for the IP (not exact) 208.145.80.33


#My confusion

  1. If I want to make a subdomin for GoToSocial like 'gts.social.new example.com', do I use CNAME or A record?
  2. If I want to serve the static website to be served at 'www.newexample.com' , do I remake an A record for www.newexample.com ?
  3. There appears to be a CNAME in my DNS record already by the registrar for www that goes to some "redirect" link. What's up with that?
  4. How do I make the domain connect to my server and how to make the server connect to my domain properly?
you are viewing a single comment's thread
view the rest of the comments
[–] ryannathans@aussie.zone 21 points 1 week ago (1 children)

KISS

Delete all the registrar's crap

Add A record for the subdomains you want, like www or root (@) or socialwhatever to point to your reverse proxy's public IP

Done, reverse proxy proxies the request based on the requested URL

[–] Maroon@lemmy.world 8 points 1 week ago* (last edited 1 week ago) (3 children)

And to which IP do I open ports 80 and 443 in my router, then?

(You are really underestimating the second S of KISS in my case, sorry!)

[–] ImgurRefugee114@reddthat.com 6 points 1 week ago* (last edited 1 week ago)

When port forwarding, you want that internal IP to be the internal address of the server on your LAN. That way, all port 443 traffic sent to your external ipv4 (as received by your router) is sent to whatever machine is hosting the web server or reverse proxy.

Regarding the www sub domain cname, idk what your registrar is doing but it's common practice to redirected www to your base domain, or vise versa; so web visitors get a consistent experience whether they type www or not. It would probably be best to start fresh though

[–] irmadlad@lemmy.world 1 points 1 week ago

(You are really underestimating the second S of KISS in my case, sorry!)

LOL That got a physical chuckle as I can most definitely relate.

[–] Rivalarrival@lemmy.today 1 points 1 week ago

I'll need to know a little more about your setup. Sending DM...