mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 12:15:08 -04:00
No description
![]() - The syntax definition was confusing because it was mixing one-of options and optional arguments which are only relevant for certain options. - Add notes about replacement capture groups. Wording could probably be improved here. Point is, capture groups are supported, using Golang's syntax (doesn't use Caddy's placeholder syntax, which can be a gotcha) - Add similar directives section, mainly to point out that `handle_path` can be used instead in many situations to save a line. The note about `rewrite` is kinda redundant with the small paragraph at the top though. Should we move that explanation down into `Similar directives`? |
||
---|---|---|
.github | ||
src | ||
.editorconfig | ||
.gitignore | ||
Caddyfile | ||
README.md |
The Caddy Website
This is the source of the Caddy website, caddyserver.com.
Requirements
- Caddy 2 (installed in your PATH as
caddy
)
Quick start
git clone https://github.com/caddyserver/website.git
cd website
caddy run
Your first time, you may be prompted for a password. This is so Caddy can serve the site over local HTTPS. If you can't bind to low ports, change the address at the top of the Caddyfile, for example localhost:2015
.
You can then load https://localhost (or whatever address you configured) in your browser.