Live data from Hacker News

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

news.ycombinator.com

21–30 of 507 posts

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

#22
I guess cheap and easy are opposite directions in a way, but if you are totally static, I guess a Digital-Ocean instance isn't too difficult, with some leeway to improve the response-time over time; Just slap a Nginx or something on it, serve up the statics, and maybe establish a way to upload stuff (scp?), Just keep hold of backups (docker images, configs/dotfiles, and actual content), put good protection on the droplets (they are targets for hacking).

The benefit is that it's just a linux distro of your choice, so you can use whatever you are familiar with, and there is scope to add non-static service if needs be.

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

#23

I guess cheap and easy are opposite directions in a way, but if you are totally static, I guess a Digital-Ocean instance isn't too difficult, with some leeway to improve the response-time over time; Just slap a Nginx or something on it, serve up the statics, and maybe establish a way to upload stuff (scp?), Just keep hold of backups (docker images, configs/dotfiles, and actual content), put good protection on the dro…

They have a managed service for folks with docker instances.

You also get a few free static sites as well https://www.digitalocean.com/products/app-platform/

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

#26
post #5

Speaking of AWS, I recently deployed a gatsby web site with AWS Amplify. It links to your git repo and will automatically deploy when you merge to master/main. You can also deploy branches you want to test out. As this was my second website I have ever deployed, I was amazed at how easy it was to setup.

This. I can warmly recommend AWS Amplify for hosting static sites. Very convenient and easy to set up.

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

#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 things like serve html without the .html filetype in the url; e.g. https://zck.org/emacsconf2020 is stored on the server as emacsconf2020.html . (I do this so Emacs recognizes the files as html, but keeps the urls clean).

It's a nice tool if you want to get a little involved in your setup, without getting wrapped up in proprietary tooling. It does charge for what you use, so it's not a great site if you are going to host Blu-ray images that get downloaded from everyone on HN.

Post reply on HN