handle_path
: 代理时去除前缀route
: 代理时不去除前缀
xxx.site {
root * /usr/share/caddy
file_server
log {
output file /var/log/caddy/access.log
}
tls xxx@gmail.com
tls {
protocols tls1.2 tls1.3
ciphers TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
}
route /path/* {
reverse_proxy http://xxx.site:18000
}
handle_path /path_server/* {
reverse_proxy http://xxx.site:15000
}
}