Live data from Hacker News

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

news.ycombinator.com

461–470 of 507 posts

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

#461
post #459

ask your isp for a static ip address, attach a rasperry pi to your home network, forward port 80 and, if you're fancy, port 443 to the IP of said raspberry pi. Install a webserver (like lighttpd) buy a domain name with DNS hosting, add an A record for your domain to point to previously mentioned static IP. Was next to free in 1999, still is.

In my country ISPs only give static IPs to business customers. Plans for business customers are 5-10 times more expensive than regular plans.

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

#462
post #162

I've tried Github pages, Netlify, and Cloudflare Pages. Moved last night to the latter. Github pages is fine, but the extra gh-pages branch is kind of annoying. It's fairly clear (for obvious reasons) that they mainly think about Jekyll users, though I had a Hugo blog there for a while. Netlify sounds great, but in practice I ran into an annoying issue that I couldn't resolve where I had to rerun every automatic buil…

The feature that made me change from github pages to netlify was 302s. Cloudflare pages doesn't seem to have that.

What is 302s?

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

#463
post #219

Hosting a personal blog on old / cheap hardware at home and accepting some downtime now and then should be a trade-of worth making for most. An interconnected web of documents served from personal computers residing under a desk or in a basement – it is a beautiful thing. We nerds often seem to fall into the trap of over-engineering things, like, spending a lot of time building personal stuff that can scale into the…

[deleted]

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

#464
post #162

Earlier quoted context omitted.

The feature that made me change from github pages to netlify was 302s. Cloudflare pages doesn't seem to have that.

What is 302s?

(temporary) redirects: https://en.wikipedia.org/wiki/HTTP_302

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

#465

Earlier quoted context omitted.

Performance maybe a little bit, but IIRC you, as the owner of the bucket, pay for bandwidth out. Putting it being a CDN protects you (at least a little bit) from the possibility of a huge bandwidth bill at the end of the month if someone realizes they can attack your wallet directly by trying to ddos your site.

I agree– AWS bandwidth out is literally 100 times more expensive than CDN and VPN bandwidth out.

*VPS

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

#466
post #459

ask your isp for a static ip address, attach a rasperry pi to your home network, forward port 80 and, if you're fancy, port 443 to the IP of said raspberry pi. Install a webserver (like lighttpd) buy a domain name with DNS hosting, add an A record for your domain to point to previously mentioned static IP. Was next to free in 1999, still is.

In my country ISPs only give static IPs to business customers. Plans for business customers are 5-10 times more expensive than regular plans.

thats insane, i pay an additional fee of about $5 for it

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

#467
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…

From NFS site: > Currently we are not tracking (and hence not billing for) extra bandwidth usage. This is subject to change at any time. What do you do if your small static site gets suddenly HN audience? Do you then pay thousands for the bandwidth? For simple static sites, I always look at the egress rates and bandwidth caps. For example if you have Wasabi+Cloudflare, then you know the pricing before hand. Wasabi do…

They say in their FAQ that a typical slashdot/reddit surge costs a typical site under $10. If you keep a $20 buffer you're probably fine, and the worst case is you burn through that and the site shuts off until you put more in.

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

#468

Earlier quoted context omitted.

I have unlimited neocities subdomains and pay $0 a year. I must be on a discontinued plan, but at one time there was a $100 lifetime offer.

Sounds like the perfect plan. How many of the companies mentioned in this thread will be around in 10 years? I'd bet on neocities.

What makes you think neocities stands out and above?

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

#469
post #89
post #62

Earlier quoted context omitted.

I discovered Netlify through Netlify CMS. I had a pretty bad opinion about Netlify CMS, so I was pretty sure Netlify was going to be at least as bad. Damn, I have never been so wrong: - the interface is so intuitive I never opened the documentation - this is FAST (the bottleneck to see my website live is now my browser cache) - no need to create a Github Actions pipeline to deploy, just say "hey, my repo is here" - a…

My favorite feature is automatic deployment of pull requests. I love it, and I wish there was something as cheap and easy for backend services as well. Though I guess it's not too necessary if you implement testing properly :p

Also, preview deployments for PRs.
Post reply on HN