목차

, ,

Caddy

자동 HTTPS, 간결한 Caddyfile, 내장 reverse proxy 기능을 중심으로 많이 쓰는 웹 서버다.

Summary

Installation

Debian / Ubuntu / Raspbian

공식 stable APT 저장소를 등록해 설치한다.

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg
sudo chmod o+r /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy

Fedora

공식 Caddy COPR 저장소를 활성화해 설치한다.

sudo dnf install dnf5-plugins
sudo dnf copr enable @caddy/caddy
sudo dnf install caddy

RHEL / CentOS

공식 Caddy COPR 저장소를 활성화해 설치한다.

sudo dnf install dnf-plugins-core
sudo dnf copr enable @caddy/caddy
sudo dnf install caddy
sudo systemctl enable --now caddy
systemctl status caddy

macOS

공식 설치 문서가 안내하는 community-maintained Homebrew formula를 사용한다.

brew install caddy

Windows

Caddy 공식 설치 문서는 community-maintained Chocolatey와 Scoop 패키지를 안내한다.

choco install caddy

또는:

scoop install caddy
2026-07-20 기준 Caddy 공식 설치 문서에는 winget 설치 방법이 안내되어 있지 않다. 출처가 불명확한 package ID를 임의로 사용하지 말고, 위의 문서화된 방법이나 공식 static binary를 사용한다. Windows service로 상시 실행하려면 설치와 별도로 공식 Windows service 안내를 따른다.

Verification

설치한 바이너리의 version과 build 정보를 확인한다. 배포 패키지나 custom build에 따라 포함된 module은 달라질 수 있다.

caddy version
caddy build-info

Usage

Options

Examples

caddy file-server --root . --listen :8080
caddy reverse-proxy --from :2080 --to :9000
caddy fmt --overwrite ./Caddyfile
caddy adapt --config ./Caddyfile --pretty --validate
caddy reload --config ./Caddyfile

Config

Troubleshooting

Compatibility

Help

+ caddy help

Local caddy help output was not captured in this repository checkout.
Use the official command line reference:
https://caddyserver.com/docs/command-line

+

See Also

History