Let’s not only create a website, lets serve it so that others can see it!

Because you already have a SSG Generated Web, dont you?

What You Will Need How to Do It
Domain registration Register a domain name (e.g., yourdomain.com) with a domain registrar.
Adapt some Code Just some willingness to do so
DNS configuration Be ready to configure some DNS

Ready to say goodbye to that costly monthly hosting subscription?

Use SSG themes, because they are: crazy fast, SEO Optimized AND MIT LICENSED ❤️

Full Price with SSGs

Pss, and you can also do PPTs with them!

What We Will Setup Options to Host Static Sites (DIY)
NGINX Lightweight, high-performance web server.
Lighttpd Lightweight web server optimized for speed.
Apache HTTP Server Widely-used, robust web server with extensive features.
Caddy Simple, user-friendly web server with automatic HTTPS.

Let’s get started with this chapter of our SelfHosting Journey:

  1. Pre-Requisites - Have a Static Site to Host
  2. DIY Hosting for Static Sites - We will focus on lightTPD, but there are more options
  3. (Optional) - Monitor your site with F/OSS Analytics

Why Static Websites

Like most of the people, I am not a web developer, but we might want to have a WebPage.

Paying $$$ for a domain+wordpress/wix is not an option for most of us, which is the most common process to get started. Blogger is also out of the equation.

But we are lucky, as there are Free and Open Source ways to have our own place in the internet.

We can use Wordpress or Ghost as they are open source projects, those projects need a hackable database

You are not sure how those Themes can look like? Well…have a look to:

Static WebSites Generators

Today, we are interested in static sites, like the good old internet, just plain files: html, js, css, no database at all - that cover most of our use case.

And if you are wondering - They also look cool (and are crazy efficient) 😉

And we are not going to write every single line of code - for that, we use the SSGs:

Star History Chart

Think of them as templates, where you can just focus in your content.

You are done already and have the build done? Oh, no you need some server to host it and serve the files whenever someone wants to visit you.

And this time, you want to use a DIY solution to host your static site.

SelfHosting your (Static) Website

Lighttpd (lighty)

Lighttpd is known for its speed and efficiency, making it an excellent choice for serving static content.

It’s easy to configure and suitable for small to medium-sized websites.

Nginx

Nginx is another popular open-source web server known for its performance and scalability. It’s often used for both static and dynamic content and can be highly optimized for various use cases.

Apache HTTP Server (with mod_rewrite):

Apache is one of the most widely used web servers and can be configured to serve static content efficiently.

When serving static content, it can be configured for excellent performance, especially with the mod_rewrite module.

Caddy

Caddy is a modern, open-source web server known for its ease of use and automatic HTTPS support.

It’s particularly suitable for serving static sites and can automatically obtain SSL/TLS certificates for secure connections.

Conclusions

We have seen some SelfHosted and Free Open Source Software alternatives to the 3rd Party Managed solutions that offer free tiers plans (even free domains if you dont have one).

Now, you can use your domain, together with your website and be in total control not only of the content, but on how it is served to your visitors.

Certainly! Here’s a markdown table comparing Subatic with two other open-source services for hosting images:

Service License Primary Use Pro Con
Subatic Open Source (GPL v3) Video hosting Extremely simple and scalable video hosting Focuses only on video, not images
Piwigo Open Source Photo management Extensive features and plugin support More complex setup and configuration
Lychee Open Source Photo management Simple and user-friendly interface Limited advanced features compared to Piwigo
MediaCMS aGPL Video and Media CMS open source video and media CMS, written in Python/Django and React, featuring a REST API.

https://medevel.com/os-photo-collection-self-hosted/


FAQ

Surprise! Your Static Site does not need a database backup – because it simply does not have one ✅.

Make sure to know where to store your SSG code, and host it wherever you want.

How is my Website Performing?

You can have a look how much people like your content with F/OSS Web Analytics:

  • Umami – a simple, fast, privacy-focused alternative to Google Analytics.
  • Plausible - aGPL v3

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.

  • Matomo

Google Analytics alternative that protects your data and your customers’ privacy

If you are having a site for sometime already, it might be good to look that all referenced links are working from time to time.

But, manually…is not an option - Fortunately we can use LinkChecker Project with Python.

You will get a report with what’s link working and what not when it comes to Links in your Site.

How to Monitor My Website Status

If you are worried if your website is accesible at any point of time, you can use:

A fancy self-hosted monitoring tool

Upptime is the open-source uptime monitor and status page, powered entirely by GitHub.

I need email with my domain

If you have a domain already – Next, you need to choose an email hosting provider. There are several options available:

a. Managed email hosting services: These are third-party providers that offer email hosting services, such as Google Workspace (formerly G Suite), Microsoft 365, or Zoho Mail. They provide a user-friendly interface to manage your email accounts and often include additional features like calendar and collaboration tools.

Name Description
Resend A transactional email API service for developers
Postmark A fast and reliable transactional email service
Mailgun A powerful email delivery service for sending, receiving, and tracking emails
MailerLite An email marketing platform for creating and sending newsletters, automated emails, and more
SendGrid A cloud-based email delivery service for transactional and marketing emails - For some reason I got insta banned after creating an account and CS could not explain why 😩
Mailtrap A fake SMTP server for testing and viewing emails in a safe environment

Interesting SMTP example - https://mariushosting.com/synology-set-up-email-notifications-on-solidinvoice/

b. Self-hosted email server: You can set up your own email server using software like Microsoft Exchange, Sendmail, Postfix, or Dovecot. This option requires more technical knowledge and server management skills.

Let’s break this down: