板上有熟悉 caddy 的大牛吗?咨询一下 caddy 内容替换的问题?

搬瓦工机场JMS

简单反向代理正常:
xxx.com:443 {
tls /usr/local/bin/cert/xxx.crt /usr/local/bin/cert/xxx.key
root /www
gzip
index index.html
proxy / https://github.com
}
增加内容替换后失败:
xxx.com:443 {
tls /usr/local/bin/cert/xxx.crt /usr/local/bin/cert/xxx.key
root /www
gzip
index index.html
proxy / https://github.com
filter rule {
path .*\.html
search_pattern <footer class="footer mt-6">
replacement <footer class="footer mt-6" style="display:none;">
}
}
河南网友:对了 caddy 有没有调试命令类似 nginx -t 这种?

广东网友:caddy这么复杂啊
吉林网友:感觉入门简单,实际上很难。但是nginx对http2支持不好,反向代理是指还是http1.1,且反代在safari下搜索出现莫名其妙的post错误,找不到原因。

未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » 板上有熟悉 caddy 的大牛吗?咨询一下 caddy 内容替换的问题?

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏