Get Caddy up and running in minutes with this quick start guide. You’ll learn how to serve static files and set up a reverse proxy with automatic HTTPS.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/caddyserver/caddy/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have Caddy installed. See the installation guide if you haven’t installed Caddy yet. Verify your installation:Serve a Static Site
Use a Caddyfile
For more control, create aCaddyfile in your site directory:
Caddy automatically looks for a
Caddyfile in the current directory when you run caddy run without specifying a config.Enable Automatic HTTPS
To enable automatic HTTPS for a real domain:Reverse Proxy
Here’s how to proxy requests to a backend application:With Path-Based Routing
Common Caddyfile Patterns
Static Site with Compression
SPA (Single Page Application)
Reverse Proxy with Custom Headers
Multiple Sites
Production Operations
Using the Admin API
Caddy’s admin API runs onlocalhost:2019 by default.
Get current config
Load a new config
Next Steps
Core Concepts
Learn about Caddy’s architecture and module system
Caddyfile
Master the Caddyfile configuration format
Reverse Proxy
Deep dive into reverse proxy configuration
CLI Reference
Explore all Caddy commands