Open Source Web Server & Load Balancer Solution Stack

Caddy  Web Server Solution Stack

Open Source Web Server & Load Balancer Solution Stack

Use Caddy open source web server for TLS certificate renewals, OCSP stapling, content serving, reverse proxying, virtual hosting, markdown rendering and more.

Overview

Caddy server is extremely easy to configure and use. It takes care of TLS certificate renewals, OCSP stapling, static file serving, reverse proxying, Kubernetes ingress, and much more. It is cross-platform, open source solution stack, and can run across all major operating systems including macOS, Linux and Windows. Caddy is a flexible and efficient static file web server as well as powerful and scalable reverse proxy.

Caddy is the only web server to use HTTPS by default. It renews TLS certificates automatically and staples OCSP responses. Caddy is written in Go language so it offers greater memory safety than servers written in C. Use Caddy server for compression, template evaluation and Markdown rendering of your web sites.

Use Caddy for reverse proxy, active and passive health checks, load balancing, circuit breaking and caching. It has everything Built-in with no dependencies so it runs great in containers. Which makes it simple to install and simple to upgrade. Caddy has its own apt repos for Debian-based distributions.

System Requirements

Caddy is Go based open source web server. It requires following software.

  • Go 1.14 or newer
  • Root access on your system through sudo
  • nss-tools, setcap, wget and tar

Features

  • Easy configuration with the Caddyfile
  • HTTP/1.1 (plaintext HTTP)
  • HTTP/2 (default for HTTPS connections)
  • Access, error, and process logs
  • Experimental support for HTTP/3
  • Automatic HTTPS by default
  • TLS 1.3
  • Server Name Indication
  • OCSP stapling
  • FastCGI proxy
  • Virtual hosting - multiple sites on the same port
  • IPv4 and IPv6 support
  • Graceful restart/reload
  • Reverse proxy
  • Load balancing with health checks
  • Markdown rendering
  • Gzip compression
  • Basic access authentication
  • URL rewriting
  • Open Source

Installation Instructions

Download Caddy from GiHub.

Then Use curl command

    curl -OL "https://github.com/caddyserver/caddy/releases/latest/download/ASSET"

You can also download using using wget command

    wget "https://github.com/caddyserver/caddy/releases/latest/download/ASSET"

Note*: Replace [ASSET] with the filename for your platform.

Run following commands to install on Debian, Ubuntu, Raspbian

    echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" \
        | sudo tee -a /etc/apt/sources.list.d/caddy-fury.list
    sudo apt update

After installation, Caddy will start automatically.

Explore

In this tutorial, we have explained the installation process and features of Caddy web server solution stack. To learn about other open source solution stack option, please check following pages:

 English