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

💘 相关文章

写一条评论