文件操作 - resp-status.rst.txt
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/varnish/html/_sources/vcl-design-patterns/resp-status.rst.txt
编辑文件内容
.. Copyright (c) 2021 Varnish Software AS SPDX-License-Identifier: BSD-2-Clause See LICENSE file for full text of license Using extra digits in resp.status ================================= In Varnish the ``.status`` variables can hold more than three digits, which is useful to send information to ``vcl_synth{}`` about which error message to produce:: sub vcl_recv { if ([...]) { return(synth(12404)); } } sub vcl_synth { if (resp.status == 12404) { [...] // this specific 404 } else if (resp.status % 1000 == 404) { [...] // all other 404's } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件