Live data from Hacker News

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

news.ycombinator.com

81–90 of 507 posts

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

#81
post #6

The most popular currently is probably https://www.netlify.com/ - 100% free. If AWS + CloudFront is too difficult and you don't mind spending a few bucks, it's pretty easy to get started with LightSail - about $3.50 a month.

Specifically Netlify Drop: https://app.netlify.com/drop You don't even need to create an account, just upload a zip of your files.

You don’t even have to zip it!

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

#82

Earlier quoted context omitted.

An S3 bucket is intended as storage, not retrieval. Downloading from S3 means grabbing shards. You should put a proper CDN, like CloudFront or Cloudflare, in front.

> You should put a proper CDN, like CloudFront or Cloudflare, in front. I understand what you're saying, but why? I assume the site in question is pretty low volume. What's wrong with serving directly from S3?

You can't get https on S3. Also many interesting headers are only available via cloudfront.

Also you get a little bit of protection from someone sending lots of traffic to make you spend $$$

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

#83

Earlier quoted context omitted.

Why, if his monthly bill is 83 cents, and he values his time? Does not using a CDN impact performance in a crippling way that neither me nor the poster you're replying to understands?

The big gain with putting Cloudfront in front of it is you can have HTTPS.

HTTPS gets you better SEO and the ability to be iframe'd from HTTPS sites.

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

#84
For the extra $1-2/mo, I think a $5 DigitalOcean ubuntu/similar droplet provides a ton of value, above and beyond just hosting a "static" site at the cheapest place for less. Want email too? ez. Virtual Hosts? ez. SOCKs proxy in the cloud? literally built in.

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

#85

Check with your ISP, they often offer some 10 or sometimes 50! MB of free space to host your homepage and images under an account url, eg: http://example.com/~you . Uploading is easy, just FTP your files to their server and your done! I miss the old days :(

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 versions of Netlify etc, and the systems work to maintain 100 static websites is little different to maintaining 5 static websites.

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

#86
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 have also used nearlyfreespeech for years, and I'm very satisfied with the price model and clear, easy-to-use account management pages.

My site is entirely statically-served; I have one script for rebuilding my local copy and a second for rsyncing to my NFS host.

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

#88
Depends on what you may already have! I was looking for something similar the other day, and remembered that I already had some redirects setup under my custom Fastmail domain; turns out they also allow you to host static HTML. You can even generate a dedicated FTP login to automate uploading. This specific case might not apply to you, but perhaps you’re already paying for another service that also offers something like this?

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

#89
post #62

GitHub Pages or Netlify for sure. With either of these options, your static site can be set up to deploy whenever there's new commits to the specified branch. Me and a friend mentor for Code Louisville, and we're able to get the beginner frontend students up and running very quickly using these options - they're free and much easier to use.

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

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

#90

GitHub Pages or Netlify for sure. With either of these options, your static site can be set up to deploy whenever there's new commits to the specified branch. Me and a friend mentor for Code Louisville, and we're able to get the beginner frontend students up and running very quickly using these options - they're free and much easier to use.

I swear by Netlify. It's fantastic, and I use it for several sites, not least of which is my own personal site.

One of their neat features is the ability to spin up "pull request sites" automatically, so you can share versions of your site with stakeholders before it's made live.

Post reply on HN