



Caddy is praised by researchers and industry experts for its security defaults and unparalleled usability.
"TLS must be enabled by default ... and the Caddy web server is a good and usable example..."
"Caddy is impressive. This is what we want, setting up a secure website."
—Josh Aas
Executive Director, ISRG
"No popular server software does [session ticket key rotation], with the exception of the most recent release of Caddy."
The Caddyfile is a text file that configures Caddy. It's designed to be easy to type and hard to get wrong.
The first line of the Caddyfile is always the address(es) of the site to serve.
You can define as many sites as you want; Caddy supports virtual hosting and lots of other features!
matt.life # Your site's address
ext .html # Clean URLs
errors error.log { # Error log
404 error-404.html # Custom error page
}
# PHP backend
fastcgi /blog localhost:9000 php
# API load balancer
proxy /api localhost:5001 localhost:5002
All you have to do is run caddy
and voilà! Caddy automatically loads your Caddyfile if it's in the same folder. For production sites, HTTPS is on by default!
caddy
Activating privacy features... done.
http://matt.life
https://matt.life
_
Type your site's address to see it in action. Live sites are redirected to HTTPS for you.
Caddy is great for building sites at home or work, and for serving sites in production. Try it out!