Caddy
Web infrastructure · Free
A web server and reverse proxy with automatic HTTPS: Caddyfile, a JSON API, and extensions for hosting websites and routing to apps.

What you can use for free
The open source component used locally or self-hosted for the stated workflow, within its license terms.
Paid features and costs
Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected.
Access and limitations
Code licensing and hosting costs are separate matters. Check the conditions for the specific version and edition.
Use cases
- Host a website with automatic TLS
- Check HTTPS delivery, the proxy route, and configuration reloading
Example workflow
A possible workflow; this is not a report of hands-on testing.
Host a website with automatic TLS
Before you start
- A domain, test upstream, and Caddyfile.
- A test project and completion criteria for the task: Host a website with automatic TLS.
Steps
- Set up Caddy to test: A domain, test upstream, and Caddyfile.
- Check HTTPS delivery, the proxy route, and configuration reloading.
- Integrate the checked version into your project; document its configuration, limitations, and recovery method.
Check your result
- Redirects and security headers are correct; the administrative API is not publicly exposed.
- Check the result against a reference example; separately confirm the terms of any assets and external services used.
Choosing Caddy
Host a website with automatic TLS
Choose this when
- Host a website with automatic TLS
- Check HTTPS delivery, the proxy route, and configuration reloading
Consider alternatives when
- When choosing for this topic, compare Caddy with HAProxy. A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare Caddy with NGINX. A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Requirements
- A prebuilt binary and Caddy configuration; network port permissions and certificate issuance conditions for the chosen address.
Things to consider
- Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
- Terms of use: Apache-2.0
Frequently asked questions
What can you use for free in Caddy?
The openly available portion, used locally or self-hosted for the stated use case within its license terms.
What additional costs might arise with Caddy?
Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
What terms of use matter for Caddy?
Apache-2.0
How do you get started with Caddy?
Set up Caddy to test: A domain, test upstream, and Caddyfile. Check HTTPS delivery, the proxy route, and configuration reloading. Integrate the checked version into your project; document its configuration, limitations, and recovery method.
Do I need to install Go to run Caddy?
Go is not needed for a prebuilt executable: it is a source-build requirement. Configuration can use Caddyfile or JSON and be updated through the API. Automatic HTTPS uses public certificate authorities or a local CA for internal addresses; trust and address accessibility requirements depend on the deployment method.
Related tasks and approaches
- HAProxy
A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- NGINX
A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Traefik Proxy
A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
Apache-2.0
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsTechnologies and topics
- Caddy
- Web infrastructure