Caddy is an open-source, HTTP/2-based web server that is designed to be fast, easy to configure, and secure. In this tutorial, we will explain how to install Caddy on Ubuntu Server Latest.
Before continuing with this tutorial, you must have the following:
The first step is to install the required packages for Caddy on your Ubuntu Server Latest.
sudo apt update
sudo apt install -y apt-transport-https curl gnupg
Next, you need to add Caddy's official repository to your Ubuntu system. This repository will provide you with the latest version of Caddy.
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo apt-key add -
echo "deb https://dl.cloudsmith.io/public/caddy/stable/deb/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
Now it's time to install Caddy. Follow the steps below to install the latest version of Caddy on your Ubuntu Server Latest.
sudo apt install -y caddy
systemctl status caddy
You should see the following output if Caddy is running successfully:
● caddy.service - Caddy HTTP/2 web server
Loaded: loaded (/lib/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-08-21 07:45:00 UTC; 2min 0s ago
Docs: https://caddyserver.com/docs/
Main PID: 9984 (caddy)
Tasks: 8 (limit: 2361)
Memory: 10.6M
CPU: 225ms
CGroup: /system.slice/caddy.service
└─9984 /usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
In this tutorial, you learned how to install Caddy on Ubuntu Server Latest by adding the official Caddy repository and installing Caddy using apt package manager. You can now use Caddy as your web server to serve your website or web applications.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!