Caddy 类Nginx

最后更新于:2022-04-02 02:55:34

[TOC] > [github](https://github.com/caddyserver/caddy) > [官方手册](https://caddyserver.com/docs/) ## 概述 1. 一款由 Go 编写的 Web Server 工具,可代替 Nginx 2. 能让网站自动支持 HTTPS 3. 默认还支持 http/2 ## 安装 [下载](https://caddyserver.com/download) [插件下载](https://caddyserver.com/download) ### 源码编译 ``` git clone "https://github.com/caddyserver/caddy.git" cd caddy/cmd/caddy/ go build ``` ### xcaddy - 安装caddy插件 [caddyserver/xcaddy](https://github.com/caddyserver/xcaddy) 安装 xcaddy ``` go get -u github.com/caddyserver/xcaddy/cmd/xcaddy ``` 安装插件 ``` xcaddy build \ --with github.com/caddyserver/nginx-adapter --with github.com/caddyserver/ntlm-transport@v0.1.1 ```
';