S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
homelab 2026-10-20

Caddy Reverse Proxy Setup: Ubuntu Install in Minutes

Companion guide and video starting point

This article is a companion to the video, not a replacement for it, and the video is the starting point for everything below.

Watch the video

In the video: the presenter installs Caddy 2.11.7 on Ubuntu 24.04 using the official binary with no root and no build step, writes a three-line Caddyfile that reverse-proxies port 8080 to a demo site on port 9000, validates and starts it, proves the proxy with a request that returns 200, then stops the server and sketches the production path of apt install plus domain for automatic HTTPS.

Added from the sources: install mechanics were checked against the official Caddy install docs, the official download page, the v2.11.7 release notes, and the reverse_proxy directive docs on November 4, 2026. Terminal output in the video is recreated from a real test run on Ubuntu 24.04 x86_64 dated 2026-10-20, with download progress shortened and daemon details trimmed, per the video description.

What you need before starting

In the video: you need 64-bit Ubuntu 22.04 or newer plus curl, which is preinstalled, and about 100MB of disk. Two commands confirm the machine qualifies: uname -m should print x86_64 and lsb_release -rs should print 24.04 or newer.

Prerequisite check showing x86_64 architecture and Ubuntu 24.04, which clears the 64-bit Ubuntu 22.04-plus requirement
Prerequisite check showing x86_64 architecture and Ubuntu 24.04, which clears the 64-bit Ubuntu 22.04-plus requirement (Still from the walkthrough video.)

Download the official binary and prove the proxy

In the video: the presenter grabs the official 64-bit Linux build of version 2.11.7 from the Caddy GitHub releases, extracts the caddy binary, confirms the version, starts a tiny demo site, writes the Caddyfile, validates it, starts Caddy, and proves the proxy by requesting the page through port 8080.

Heads-up before you type: this section runs a background demo web server and later stops Caddy on purpose, so read the whole section first. The command python3 -m http.server 9000 --bind 127.0.0.1 --directory www & leaves a background Python process on port 9000 until you kill the job, and caddy stop shuts the proxy down at the end, which is expected and not an error.

Demo backend serving on port 9000, a three-line Caddyfile proxying port 8080 to it, and the Valid configuration result from caddy validate
Demo backend serving on port 9000, a three-line Caddyfile proxying port 8080 to it, and the Valid configuration result from caddy validate (Still from the walkthrough video.)

Going public with automatic HTTPS

In the video: for a real site the presenter points at the official apt repository so systemd manages Caddy, then puts a real domain in the Caddyfile so certificates are provisioned automatically. The exact apt commands live in the video package notes, and that production path was described but not run in the sandbox, so it is untested here.

Production path cards showing the official apt repo with systemd service plus a domain in the Caddyfile for automatic HTTPS
Production path cards showing the official apt repo with systemd service plus a domain in the Caddyfile for automatic HTTPS (Still from the walkthrough video.)

Watch the walkthrough

Watch on YouTube