相关疑难解决方法(0)

更改清漆 4 503 错误

如何更改清漆 503 错误?
我该如何自定义它?
我正在使用清漆 v 4

现在开始工作了

sub vcl_synth {
    set resp.http.Content-Type = "text/html; charset=utf-8";
    set resp.http.Retry-After = "5";
    synthetic( {"<!DOCTYPE html>
<html>
  <head>
    <title>Under Maintenance</title>
  </head>
  <body>
    <h1>Under Maintenance</h1>
    <p></p>
    <hr>
  </body>
</html>
"} );
    return (deliver);
}
Run Code Online (Sandbox Code Playgroud)

varnish

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

varnish ×1