From a9d1b4b863e2b0ace6ffc5407e7530f6600ae3e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 7 Mar 2023 10:30:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E7=BE=A4=E6=9C=8D=E5=8A=A1=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=A2=9E=E5=8A=A0=E2=80=9C=E8=AE=B0=E5=BD=95=E6=89=BE?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E7=BD=91=E7=AB=99=E6=97=A5=E5=BF=97=E2=80=9D?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cluster/settings/global-server-config/index.go | 2 ++ .../cluster/settings/global-server-config/index.html | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go b/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go index 6e71b1e7..35f988e2 100644 --- a/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go +++ b/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go @@ -82,6 +82,7 @@ func (this *IndexAction) RunPost(params struct { HttpAccessLogEnableResponseHeaders bool HttpAccessLogCommonRequestHeadersOnly bool HttpAccessLogEnableCookies bool + HttpAccessLogEnableServerNotFound bool LogRecordServerError bool @@ -138,6 +139,7 @@ func (this *IndexAction) RunPost(params struct { config.HTTPAccessLog.EnableResponseHeaders = params.HttpAccessLogEnableResponseHeaders config.HTTPAccessLog.CommonRequestHeadersOnly = params.HttpAccessLogCommonRequestHeadersOnly config.HTTPAccessLog.EnableCookies = params.HttpAccessLogEnableCookies + config.HTTPAccessLog.EnableServerNotFound = params.HttpAccessLogEnableServerNotFound // 日志 config.Log.RecordServerError = params.LogRecordServerError diff --git a/web/views/@default/clusters/cluster/settings/global-server-config/index.html b/web/views/@default/clusters/cluster/settings/global-server-config/index.html index 04ffac40..b3386669 100644 --- a/web/views/@default/clusters/cluster/settings/global-server-config/index.html +++ b/web/views/@default/clusters/cluster/settings/global-server-config/index.html @@ -77,6 +77,13 @@

选中后,表示访问日志中记录Cookie内容。

+ + 记录找不到网站日志 + + +

选中后,表示如果访客访问的域名对应的网站不存在也会记录日志。

+ +

运行日志