Live data from Hacker News

Ask HN: Cheapest/easiest way to host a static site?

news.ycombinator.com

171–180 of 507 posts

Re: Ask HN: Cheapest/easiest way to host a static site?

#174
post #28

I use https://nearlyfreespeech.net for my static site. It isn't free -- it is pretty cheap -- but it has a lot going for it. It requires no custom tooling -- I upload via rsync. This makes it trivial to migrate to a new provider if necessary. I develop my site locally, then rsync it up. I have a custom domain pointed at the site, and also a custom .htaccess, so I have a good amount of control over the site. I do thin…

I also used/loved NFSN, but I have a habit of neglecting pages for years. I have had more than one site go dark for months before I realized they’d run out of budget. Now I use GH pages so I don’t have to think about it.

If you’re actively updating (or just better organized), NFSN is a good choice

Re: Ask HN: Cheapest/easiest way to host a static site?

#177
S3 bucket with cloudfront in front. Route 53 for DNS.

Not sure if it’s the cheapest way to do it, but it seems extremely cheap. Likewise not sure if it’s the easiest way to do it, but it seems easy now it’s set up - everything is in one place.

IIRC Cloudfront S3 data transfer has quite a generous free tier.

The only thing I worry about is whether uploading objects is expensive, and invalidation. But it’s not been (noticeably) an issue so far.

Re: Ask HN: Cheapest/easiest way to host a static site?

#178
post #117

Earlier quoted context omitted.

The in-between days (after dial-up ISPs, but before "cloud" meant people forgot they could do things themselves) was to host the website on your own computer. For example, an old laptop, a Raspberry Pi, or an always-on-anyway desktop. I host my personal site this way. I also host about 100 mostly-static mostly-low-use websites at work similarly: with Apache on a couple of VMs. They are more reliable than the free ver…

I'm not sure how you do this unless you have a static IP somehow? In my experience ISPs don't offer that to residential clients

Some ISPs do offer static IPs to residentials users (many of the top 10 here https://www.ispreview.co.uk/review/top10.php)

As IPv6 becomes more widely adopted, there will be no need to conserve IP addresses and everyone can be allocated a block of them.

Re: Ask HN: Cheapest/easiest way to host a static site?

#180
post #169

Cloudflare pages. The only real limit on the free plan is "500 builds / month". Simple is relative, of course, but if you're a developer, you'll likely find it simple, and it does fit your "deploy with a single command" requirement. https://pages.cloudflare.com/ You can also tie it with the free plan for Cloudflare Workers if you have some need beyond static pages.

Cloudflare Pages will reload/redeploy on any git push right (just like Netlify?) ? Just want to be sure before I try it out..
Post reply on HN