This page is about Caddy 1 and will go away soon because Caddy 2 is now available. Click here for Caddy 2.

Recommended by Experts

Caddy is praised by researchers and industry experts for its security defaults and unparalleled usability.

Download GitHub

How to Use Caddy

1. Make a Caddyfile

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

2. Run Caddy

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 _

3. Open your Browser

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!

Download Caddy

Caddy automatically sets up HTTPS for your site

The Most Beloved Server

Caddy and Let's Encrypt is pretty incredible. A 3-line config file yields a fully A-rated SSL site. Trivial! John Resig
Creator of jQuery
Link
With Caddy, site developers can enjoy a simplified setup and configuration process that maximizes implementation and infrastructure efficiency. Laura Bernheim
Contributing Editor, HostingAdvice
Link
Download Caddy