:80 {
        encode zstd gzip
        root * /home/ubuntu/pc
        @mobile {
                header User-Agent *Mobile*
        }
        root @mobile /home/ubuntu/mobile
        file_server
}

wget https://github.com/caddyserver/caddy/releases/download/v2.2.1/caddy_2.2.1_linux_amd64.tar.gz
tar -zxvf caddy_2.2.1_linux_amd64.tar.gz
cp ./caddy /usr/local/bin/
caddy start --config Caddyfile

标签: none

仅有一条评论

  1. 欢迎加入 Typecho 大家族

添加新评论