8 hours ago · Tech · 0 comments

My 12-year-old was interested in learning some HTML and CSS and making her own website. If she were anybody else I’d point her at something like Nekoweb as a starter host because their web-based (VSCode-based) “Nekode” text editor makes writing your first static site simple. But I’ve got a NAS sitting at home on a fibre connection, so I figured: I might as well just host something similar here. Here’s how I did it: 1. DNS I pointed her domain at my static IP, plus a subdomain for the “backend” interface. Suppose her site would be at example.net (and www.example.net) with the admin interface at admin.example.net: my DNS configuration might look like this: @ 10800 IN A 172.66.147.243 www 10800 IN CNAME example.net. admin 10800 IN CNAME example.net. 2. Caddy I’ve got a Caddy webserver acting as a static server and a reverse proxy already, so I just added a new static site with a configuration like this: example.net, www.example.net { root /volumes/example.net/public encode gzip templates…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.