Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

第 36 章 Caddy

Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go.

目录

36.1. 安装 Caddy
36.1.1. CentOS/Rocky Linux/AlmiLinux
36.2. 命令行
36.2.1. 启动 Caddy
36.2.2. 文件服务器
36.3. /etc/caddy/Caddyfile
36.3.1. 监听地址
36.3.2. 反向代理
36.3.3. Let's Encrypt 免费 SSL 证书
36.3.4. 返回内容

36.1. 安装 Caddy

36.1.1. CentOS/Rocky Linux/AlmiLinux

		
[root@netkiller ~]# dnf install 'dnf-command(copr)'
[root@netkiller ~]# dnf copr enable @caddy/caddy
[root@netkiller ~]# dnf install caddy

[root@netkiller ~]# systemctl enable caddy
[root@netkiller ~]# systemctl start caddy	

[root@netkiller ~]# cp /etc/caddy/Caddyfile{,.original}