add new chinese translations
This commit is contained in:
24
pages.zh/common/varnishlog.md
Normal file
24
pages.zh/common/varnishlog.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# varnishlog
|
||||
|
||||
> 显示 Varnish 日志。
|
||||
> 更多信息:<https://varnish-cache.org/docs/trunk/reference/varnishlog.html>。
|
||||
|
||||
- 实时显示日志:
|
||||
|
||||
`varnishlog`
|
||||
|
||||
- 仅显示特定域的请求:
|
||||
|
||||
`varnishlog -q 'ReqHeader eq "Host: {{example.com}}"'`
|
||||
|
||||
- 仅显示 POST 请求:
|
||||
|
||||
`varnishlog -q 'ReqMethod eq "{{POST}}"'`
|
||||
|
||||
- 仅显示特定路径的请求:
|
||||
|
||||
`varnishlog -q 'ReqURL eq "{{/path}}"'`
|
||||
|
||||
- 仅显示与正则表达式匹配的路径请求:
|
||||
|
||||
`varnishlog -q 'ReqURL ~ "{{regex}}"'`
|
Reference in New Issue
Block a user