I still use Wordpress and shared hosting for most projects and microsites, simply because it's easiest and I'm not a developer. But I suspect there are better ways to do this in 2016/2017. Especially since I'm prepared to learn more.<p>Essentials: static hosting, custom domains, html, css, js
Nice to have: php, FTP, markdown support<p>Am I missing out on AWS, Github, Digital Ocean, Heroku?<p>What are the pros and cons?
I use Github to host the source for my blog/website which is open source. Jekyll for the building which happens on Travis CI. Deployment on S3 with cloudflare as a CDN for SSL and reduced bandwidth. I really like this setup. I wrote a guide called The One Cent Blog[0] a while back detailing how it's setup. Typical months the cost is around $0.01-$0.03.<p>Becuase people usually ask why S3 over Github pages I'll answer it up front. Github pages is too limited in terms of what you can do with custom jekyll plugins and code.<p>0: <a href="https://hugotunius.se/2016/01/10/the-one-cent-blog.html" rel="nofollow">https://hugotunius.se/2016/01/10/the-one-cent-blog.html</a>
I have a soft spot for Neocities, which is trying to be everything we loved about Geocities, but for a modern age:<p><a href="https://neocities.org/" rel="nofollow">https://neocities.org/</a><p><i>ZERO ADVERTISEMENTS</i>, even for the free plan. Supports only static hosting, is free for 100mb websites with bandwidth of 50GB per month, or five dollars per month for 10,000mb with 2TB and a number of other extra features.<p>EDIT: As mentioned by detaro, custom domain only supported in the paid plan, see <a href="https://neocities.org/supporter" rel="nofollow">https://neocities.org/supporter</a><p>Works really well with creative coding frameworks like p5js or Twine, for fun, fast little sketches you just want to thrown online and share with others:<p><a href="http://p5js.org/" rel="nofollow">http://p5js.org/</a><p><a href="http://twinery.org/" rel="nofollow">http://twinery.org/</a><p>Also, they really care about resurrecting the ideals of the old internet:<p><a href="https://blog.neocities.org/its-time-for-the-permanent-web.html" rel="nofollow">https://blog.neocities.org/its-time-for-the-permanent-web.ht...</a><p><a href="https://blog.neocities.org/default-ssl.html" rel="nofollow">https://blog.neocities.org/default-ssl.html</a>
Nearly Free Speech (nearlyfreespeech.net aka NFSN). [1] I'd strongly recommend you try it, without purchasing a domain, and see for yourself how far the initial trial takes you (you get a 25 cent credit when you create an account). Even if you decide to try something else, it's worth your time to read NFSN's FAQ [2] to know more about the service and policies. It's quite impressive.<p>Advantages:<p>1. Excluding domain costs, which are reasonable (and even cheaper than many others), you can have small static sites for pennies a month, or even pennies a year if you put the free tier of CloudFlare in front of it (with DNS changes). It's really dirt cheap!<p>2. It's the most honest service I've seen, where you pay close to what you actually use.<p>3. The owner/admin is a no-nonsense person and is available on the forums to help with things that don't need extensive support involvement.<p>Disadvantages:<p>1. You need to be tech savvy (at least know how to use an FTP client to upload your static files and use the BSD shell if you wish to play around with application setup or other things over ssh). NFSN does not have any fancy control panels (like cPanel) where you can do one click installs of WordPress or other applications.<p>2. For PHP and MySQL based applications, setup is not difficult at all. But if you want any other application server (like Node or Rails or Django), you would have to do more work to get it set up.<p>3. If you truly need support, then there's a paid support subscription (it's optional). For most requirements the forums would suffice.<p>4. If your site grows a lot (in terms of disk space used, network traffic used and resources used), then NFSN could become very expensive compared to the commonly oversold $5 a month or $10 a month services that promise a lot but depend on most users not reaching their promised limits.<p>[1]: <a href="https://www.nearlyfreespeech.net/" rel="nofollow">https://www.nearlyfreespeech.net/</a><p>[2]: <a href="https://www.nearlyfreespeech.net/about/faq" rel="nofollow">https://www.nearlyfreespeech.net/about/faq</a>
I'm a great self-hosting fan, behind my DSL connection using 2 x RaspberryPI. I have 3 static web sites, 2 with Jekyll, 1 with Hugo, with great perf :<p>checkout webpagetest -> <a href="https://www.webpagetest.org/result/161123_0R_8RDY/" rel="nofollow">https://www.webpagetest.org/result/161123_0R_8RDY/</a><p>and feel free to check my 3 web sites:<p>- <a href="http://www.it-wars.com" rel="nofollow">http://www.it-wars.com</a>
- <a href="http://www.louer-hendaye.com" rel="nofollow">http://www.louer-hendaye.com</a>
- <a href="http://www.nodejs-news.com" rel="nofollow">http://www.nodejs-news.com</a><p>Init :
2 RaspberryPi + electric plugs : 2x 30$ + 2 x6$
Monthly bill:
electricity : about nothing
DSL : 30$<p>Enjoy!
Just to echo... Amazon S3 with CloudFront. No contest. CloudFront has free SSL too. Then AWS Lambda to provide dynamic content via Javascript / API if needed.<p>If you want to get fancy you can even attach it to your domain root (example.com vs www.example.com) using Route53. Which is impossible with many static hosts. Although that requires a hosted Route53 zone which at $2 might very well be 100x your hosting costs.<p>I use Jenkins to generate the website itself.<p>Edit: Only downside is if your traffic spikes you have no control over the cost. There is no upper bounds. With that said, it would take a tremendous amount of traffic to balloon the costs to anything worth worrying about. And at least you can be sure your website will actually stay up.
I'm biased, but Neocities (<a href="https://neocities.org" rel="nofollow">https://neocities.org</a>) can do all of these things and is a great choice for static web hosting. We run a global anycast CDN with instant cache purging, custom domains with Let's Encrypt SSL, high availability architecture, and all the rest. We haven't had a full site hosting outage in years.<p>We include 10GB storage 2TB BW for free (more of both included soon) for $5/mo, which would cost over $180/mo at AWS with S3. Cloud providers really upcharge on bandwidth big time. Really that 2TB is just a soft cap just to make sure nobody tries to run the New York Times from a $5 hosting plan. Many people go over it and it's not a problem.<p>The one thing we don't do well is show how good we are for pro hosting as well as people learning HTML and having fun. I need to work on that.
I use GitHub pages with Cloudflare (free CDN + HTTPS) for simpler sites but I'm a fan of netlify.com right now. Setup is simple, atomic deploys are simple, rollbacks are simple, caching + cache invalidation + HTTPS is done for you and there's paid plans if you need passwords, form submissions and custom response headers. There's probably cheaper options compared to the paid plan at $9 a month but you have to ask yourself how much your time is worth in comparison if you're burning just 1 hour a month on configuring your hosting.<p>Deploying over S3 sounds like a bunch of hassle to me. Can you deploy atomically? Can you rollback?
I use AWS S3, which I put behind a Cloudfront distribution. It's quick to set up, and there are no servers to keep up to date and patched. You also get free SSL for your Cloudfront distribution via AWS certificate manager. For stuff like Contact Us forms, I use AWS Lambda to post the data into my company's CMS. We've had this setup for about a year now and it works quite well.<p>The cost is almost nothing but we don't have a high traffic website. If you started getting billions of hits from expensive Cloudfront regions such as Australia or India, you might consider something else.
Uberspace.de<p>Shell Access, pretty much every common language available, service running, databases, mail, etc..<p>No bullshit hosting in germany, Pay what you want (1€/month minimum).<p>Absolute best, I'm hosting about 25 projects with them for various bands, etc. and haven't had any problems whatsoever.
For static sites I used to use surge [0], but now I use Neltify [1] for my site [2], because it offers free SSL on your own domain, and continuous deployment from a GitHub or Gitlab repository. You can set your own build options, for example to build Jekyll.<p>(I have no affiliation with Netlify I just think their service is neat.)<p>[0] <a href="https://surge.sh/" rel="nofollow">https://surge.sh/</a><p>[1] <a href="https://www.netlify.com/" rel="nofollow">https://www.netlify.com/</a><p>[2] <a href="https://gilly.tk" rel="nofollow">https://gilly.tk</a><p>edit: formatting
I use a cheap $5/mo Digital Ocean droplet with nginx, Nikola [0], and letsencrypt for ssl. Works great and I can expand easily if I want to add php or other wsgi apps.<p>[0] <a href="https://getnikola.com" rel="nofollow">https://getnikola.com</a>
I have a PC in my basement on a nice 150meg fiber connection. I have a dynamic DNS service and client set up, and ports forwarded. At this point, I can do whatever the hell I want (static or dynamic), as long as I don't transfer like 10TB a month.<p>I have Payara (java app server) running my blog down there, and HTTPS courtesy of Let's Encrypt. I looked into running a Open Street Maps server, but it was fairly hard (I might have been close to getting it running), and professional reasons for maybe playing around with it changed.
Wordpress.com or Blogger.com<p>Fully operational, all the important stuff (text editors, analytics, pictures hosting...), nice themes, well indexed by google, zero maintenance, free, and unlimited traffic.<p>I run blogs so obviously it is particularly appropriate. But that works as well for small static sites with a couple pages.
as a few people have mentioned, NearlyFreeSpeech.net is my static host of choice. i use them for static blogs (jekyll built) and they work perfectly. non static sites get charged at 1c per day (and you get a MySQL instance for about 1c a day, give or take), and static has no charge per day. you are billed for bandwidth and storage, and can have multiple sites in one account. SSH/SFTP access available also.
I generally use nearlyfreespeech.net<p>I added about 5 gbp two years ago and it's down to about 4 gbp. It's cheap as hell and I only have to dump 5 pounds on there every few years or so.
I use Google AppEngine with Python SDK. Whilst it is intended for web apps (and I use it for that too) it works well serving up static content alone. Very easy to add interactivity as and when the need arises. Also has access to Google Cloud services.<p>I like that I can check my changes on my notebook before uploading to the cloud.
NearlyFreeSpeech - fantastic business, incredibly cheap. My domain costs are more than my hosting costs (I pay roughly $2.50 a month for hosting a forum).
RamNode: 128MB RAM 15GB storage, $15/year. Cheapest I have found yet for a tiny VPS.<p>Perfect for static pages, but a little bit of PHP might be fine.
Gitlab pages (<a href="https://pages.gitlab.io/" rel="nofollow">https://pages.gitlab.io/</a>) is free, and has some advantages over Github pages:<p>- Not restricted to jekyll, use any static generator<p>- Supports https on custom domains
I'm still using Dreamweaver 8 and pushing the site to a server as static files.<p>Unfortunately, Dreamweaver 8's static SFTP doesn't work any more, due to some Microsoft-forced change in Windows 7.
I use linuxpl.com (<a href="https://linuxpl.com/Hosting-Serwery-wirtualne" rel="nofollow">https://linuxpl.com/Hosting-Serwery-wirtualne</a>) which is ~ 12 usd / year (so just $1/ month).
Comes with 2 GB of space and 50 gb bandwidth per month.<p>SSH access, shared hosting (so pretty powerful CPU/ram there). Currently i have about 700 daily unique visitors and growing. Used to deploy custom sites, now i use mostly wordpress.
Also, i use it for my git remote repos.<p>Great service. Been using if for years, awesome quality for the money.<p>Lately had some issues but the support is helpful and they fixed whatever i wanted, enabling SSI, fixing response headers, etc. Never had to wait for a reply longer than 6 hours (usually it's just minutes, really). As a bonus, admin staff is available through odlschool IM app - Gadu-Gadu.
And PHP 7 is available and easy to switch to.<p>The site's in polish, which sucks for you guys, but it's by far the cheapest and best solution i have for low cost hosting. I'm a happy customer.
I use Nginx either on my basement server (I have 50/50 fiber internet at home) or I use one of my digital ocean droplets, which can be as cheap as 5$ a month, that is less than my server at home uses in power. A Raspberry pi would also suffice if there is not too much traffic I guess, that would cost you about 10€ a year in power. Running a whole server means there is no limit to the amount of sites you can run (apart from memory and bandwidth of course.)<p>Both my servers (DO vps and basement) run Ubuntu 16.04, I use PHP-fpm for PHP, domains I purchase at a local registrar (.nl domains are about 10€/year), for ssl I use lets encrypt. For simple sites I always use Bootstrap for the css.<p>FTP is implicit if you count SFTP as FTP (FTP over SSH). Under Linux SFTP is mounted as easily as any network share.<p>At home I run a Nextcloud instance and share some directories as Nginx roots, that means I can locally (even on my phone) edit a static web page and it is synced immediately to the webserver's root folder. This can be quite convenient.
dreamhost.<p>I manage all my sites there. Never had any issues with them, there is SSH access too so I recently set up a Hugo bitbucket pipeline which builds my personal website and rysncs it to dreamhost.<p>They were very fast to add lets encrypt support, so all that stuff is taken care automagically. Reliability is very good.
www.nearlyfreespeech.net is cheap (really cheap, hence the name) and reliable - they've been around since 2002, and I've used them since 2008.
For static sites I use firebase hosting, quite simple to use and it includes a free SSL certificate
<a href="https://firebase.google.com/docs/hosting/" rel="nofollow">https://firebase.google.com/docs/hosting/</a>
I host my static stuff (with my own domains) at FastMail, it's included in my "standard" plan. Upload is possible via FTP and DAV, the quota is currently 5GB disk space, 2GB or 80K files daily traffic.
StockDroids.com is hosted on S3 and served using Cloudfront. It's pretty easy to get going if you don't mind getting a little technical.<p>Not sure how price compares to the competition, though. HN's + /r/Android's front pages resulted in about 13K uniques and it ended up costing me ~$10 (which is insanely cheap, but GitHub + Cloudfront is free...)<p>Edit: I should mention that the site isn't as light it can be, currently stands at 473kb of code and about 3 megs of images. So that $10 is for ~45 gigs of traffic.
If you want PHP and FTP, I've been successfully using webfaction <<a href="https://www.webfaction.com/>" rel="nofollow">https://www.webfaction.com/></a> for years now (they're a developer-friendly shared host). $10/month. Their setup is a little weird to figure out at first (they add an extra layer of indirection between domain names and applications), but once you get it it makes it very easy to set up new sites.
Github Pages with CNAME file, CircleCI, Cloudflare. Free, CDN, and SSL hosted if it's all open source.<p>No how-to, but it's all open source here <a href="https://github.com/barricadeio/docs" rel="nofollow">https://github.com/barricadeio/docs</a><p>Most awkward part was figuring out the voodoo required to get Hugo and Middleman working (lots of trial and error).
I use an S3 bucket. I have a Docker image that pulls Markdown out of git, runs Hugo over it and pushes the site to an S3 bucket. I set it up to work with Bitbucket pipelines so I get a site rebuild with a simple git push: <a href="https://github.com/rabidgremlin/hugo-s3" rel="nofollow">https://github.com/rabidgremlin/hugo-s3</a>
I've been using Jekyll + Gitlab + S3 + Cloudfront (+ lambda).<p>This costs me just over 50 cents a month, almost all of which is the Route53/DNS costs.<p><pre><code> - Gitlab stores the source and GitlabCI builds the site.
- Lambda triggers the build on a schedule.
- GitlabCI pushes the site to S3 (using Gitlab ENV VARS!).
- CloudFront as the CDN, also provides free SSL.</code></pre>
I've been a happy customer of Register4Less.com for years, and they throw in free static hosting with every domain name. It does everything you mention except PHP and Markdown. (But you could do Markdown yourself with a static site generator!) They also provide free WHOIS privacy, which is nice.<p>An extra $1.45/month gets you PHP and CGI hosting, plus raised quotas.<p>My only caveats: The free hosting tier only gets you 10MB of space per domain (no bandwidth quotas, though!) Which has been plenty for me for everything except large photo galleries, but YMMV. Also, I've had terrible experience with their domain backordering service--the domain I backordered was quietly released and became publicly available without a peep from R4L.<p>Their actual domain hosting, website hosting, and technical support has been stellar, though. (Websites are actually hosted on a shared server somewhere at OVH, if Ican trust the reverse DNS info.)
If you're into retro-computing and unix, there's also
<a href="http://www.sdf.org" rel="nofollow">http://www.sdf.org</a> and
<a href="http://tilde.club" rel="nofollow">http://tilde.club</a> (but, as I understand, their membeship waiting list is endless at this point).
You can use App Engine (<a href="https://cloud.google.com/appengine/" rel="nofollow">https://cloud.google.com/appengine/</a>) to host a static site for free. It's easier to set up than S3, which I've also used.
Github Pages does pretty much everything you've listed. Also Github Pages explicity allows companies to setup and host their corporate websites on there.<p>PROS: It is free, always available, and the deploy is easy once you get the hang of git.
For some cheap VPS you can try searching on <a href="https://lowendbox.com/" rel="nofollow">https://lowendbox.com/</a> some are like $2/month (usually a year commitment)
I am on scaleway bare metal at 3.6€ per month. I use no-ip.com for the free domain name. I have a docker image to update a jekyll static site that I publish over ssh with rsync. I use fgallery for the pictures collections. For me, it is the easiest solution because I am familiar with the OS and it uses only standard tools that will never change and no fancy and broken website interface.<p>It is cheap enough to not bother with the limitations of most low-cost static site hosting.
Another vote for AWS S3 + CloudFront here.<p>We also have a distributed team updating and looking after our website, and we use BitBucket as our git repo. Recently implemented their Pipelines feature to auto update the S3 bucket and refresh CloudFront resources with any changes pushed to the repo.<p>Makes it really easy now - just a 'git push' and Bam!, the website is updated and CloudFront auto invalidates all the old assets and starts serving up the new stuff. Really smooth.
Github pages + Jekyll + Wercker for custom builds<p>Pros: free, convinient (a push ends up as a new post upon a successful build)<p>Cons: no SSL with custom domain on Github (at least not easily)
Recently migrated my Hugo generated blog to Netlify and so far so good.<p>Deployment from git, Hugo build on server, free HTTPS with Lets Encrypt and free for my basic usage.
I use github to host the source code for my static Jekyll site, but since github doesn't support HTTPS on custom domains, I use Netlify as a CDN. Netlify automatically hooks me up with an A+ rated Let's Encrypt cert setup.<p>So my domain points at Netlify, which pulls the site from github.<p>The total cost of this setup is only the yearly cost of the domain, which you can eliminate too if you use a sub-domain on netlify.
I use orgmode publish to html and then a simple script to upload/sync to s3[1]. Hosted there + cloudflare for CDN/HTTPS. I was hosting the site myself on a linode, but I like this setup much better.<p>[1]: <a href="https://www.rolando.cl/201607-1-blogging-like-its-2016.html" rel="nofollow">https://www.rolando.cl/201607-1-blogging-like-its-2016.html</a>
I have the cheapest VPS from Linode, which is $12.50 a month including an extra $2.5/mo for their automatic backup service. (So, $10 if you don't want them to do the backup for you)<p>I wrote my own little script that converts markdown to html with python and push that to the server with git, but of course with a VPS you can run pretty much anything you want.
middleman -> s3 -> cloudfront. About $0.15/mo.<p>Pros: Generally works well, speedy enough, free ssl with Cloudfront, cheap for many sites (most hosts charge per site which catches me out for little projects). I've mostly got the process figured out now...<p>Cons: not easy or quick to set up, lots of steps to get right, AWS is a terrible UI, Cloudfront invalidations are apparently sent by carrier pigeon so asset hashing is a must, even then it can take a while to see your site updates<p>I've noticed a high mortality rate among static hosting sites, particularly those "just add files to Dropbox and we publish your site" services. Static hosting services are to ops people what todo list apps are to frontend designers<p>Also, to your point: you can't, by definition, run php on a static site.
I currently have one website that's built with Jekyll and I host it for free on Github Pages. The only thing I'm paying for is the custom domain name from Namecheap. Also I set up HTTPS with Cloudflare in front of it.<p>I prefer this method over managing a server any day.
I run a cheap OVH VPS for hosting. I can host any number of websites I want and it costs less than any static hosting service.<p>Also, Github Pages and Gitlab Pages are great and free. You can't beat free if it's reliable and both of those two are reliable.
I host some odd static sites with my fast mail family account. Has webdav file access and a dns control panel. Since I am buying the email service anyway it's free :-) Lets you set up different hosts serving from different folders.
for non-developers, I advocate the use of google sites, which is basically a google managed wiki. very good for intranet sites, and passable for client documentation portals.
<a href="https://www.simplybuilt.com" rel="nofollow">https://www.simplybuilt.com</a> works pretty well. Completely free for OSS projects, which is nice.
I have been trying to find the perfect static site hosting solution - although a little bit engaging AWS offers the best flexibility and cost (if you use the free tier).
Anyway I created a course on how to do it all: <a href="https://www.udemy.com/go-landing-pages/?couponCode=BLACK10" rel="nofollow">https://www.udemy.com/go-landing-pages/?couponCode=BLACK10</a><p>Anyway good luck.