admin avatar

caddy httpserver.ResponseWriterWrapper is not a closeNotifier answer

🕓 by admin





When configuring caddy minify, I got the following error

httpserver.ResponseWriterWrapper is not a closeNotifier

Solving this problem is relatively simple, because it is a proxy backend program, so the root of the website is not specified.

So caused the above httpserver.ResponseWriterWrapper is not a closeNotifier error

Solution, edit the Caddyfile file to add the root directory to point to, for example

root /var/www/test

But also found a problem, if you use the following caddy minify syntax, a 500 error will occur

minify /

Because it is a proxy backend program, this problem is caused. . .

Currently it can only be specified by caddy minify, for example

minify /static //All static files in the static directory will be formatted, such as css, js files





💘 相关文章


📝 有偿服务

• 服务器合租380/年
• 服务器配置:2.4G,6核12线程
• nvme raid 1硬盘
• 不提供服务器自主面板
• 适合稳定的个人博客
• 提供备份服务,备份空间自备
• 只提供ipv6地址,搭配cloudflare使用
• 提供想要安装的程序和域名
• 博客必须是和谐健康的
• 博客不能是视频和图片站
• 提供以下付费服务
• 建站,FTP,备份,Linux,Wordpress等建站问题咨询管理
• 加微信:344452500(不闲聊,直接说事)

写一条评论

Based on Golang + fastHTTP + sdb | go1.16.8 Processed in 0ms