Tag archive for: website hosting

How to put your Raspberry Pi server on the internet with ngrok

As I had mentioned in how to host multiple websites from home, a typical network architecture looks like the following:
Home network architecture In such a case, we will need our router to hold a public IP address and perform port forwarding for our home servers.

However, there can be cases where we do not have the environment to put our server on the internet.

In such a situation, you will find ngrok useful. Since ngrok accepts traffic on a public address and relays that traffic through to the ngrok process running on your machine, you can put your server on the internet easily.
ngrok demo diagram

Given that, let’s look at how you can put your Raspberry Pi server on the internet with ngrok.

How to host a static website on your Raspberry Pi with Nginx running on Raspbian Buster Lite

After you had understood HTML, CSS and JavaScript from The Web Developer Bootcamp, you can start to host a static website on an actual web server.

If you had been the kind of fan who buy newly-launched Raspberry Pis, then you may find some lying around the house collecting dust.

In this situation, why not use one of your Raspberry Pi to host something that you had just learnt?

Given that, let’s look at how you can host a static website on your Raspberry Pi with Nginx running on Raspbian Buster Lite.

How to host a static website on your Raspberry Pi 3 with Raspbian Stretch Lite and Nginx

When you want to host a static website as your personal portfolio, you can consider using a Raspberry Pi 3. In addition to having a small form factor, a Raspberry Pi 3 is a single board computer that does not take up too much energy to run 24-7.

In order to host a static website on Raspberry Pi 3, you will need an operating system and a web server. Given these points, this is how to host a static website on your Raspberry Pi 3 with Raspbian Stretch Lite as the operating system and Nginx as the web server.

How to host multiple websites from home

A website is a collection of related web pages, including multimedia content, that people can access anytime from anywhere of the Internet.

A website facilities the exchange of information between multiple parties. For instance, when you read the content of this page, I would have, hopefully, share the information of how to host multiple websites from home.

With the proliferation of single-board computers, it is now inexpensive to deploy computing devices to serve web applications from home. If you do not switch off your Internet modem at home, you may want the option of accessing some of these devices when you are away from home.

For example, here are some web applications / websites that you may host from home:

This post documents some procedures that we can follow in order to host multiple websites from home.