集群服务设置增加“记录找不到网站日志”选项

This commit is contained in:
GoEdgeLab
2023-03-07 10:30:11 +08:00
parent 565ce2aa0d
commit aa99063800
2 changed files with 9 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ func (this *IndexAction) RunPost(params struct {
HttpAccessLogEnableResponseHeaders bool HttpAccessLogEnableResponseHeaders bool
HttpAccessLogCommonRequestHeadersOnly bool HttpAccessLogCommonRequestHeadersOnly bool
HttpAccessLogEnableCookies bool HttpAccessLogEnableCookies bool
HttpAccessLogEnableServerNotFound bool
LogRecordServerError bool LogRecordServerError bool
@@ -138,6 +139,7 @@ func (this *IndexAction) RunPost(params struct {
config.HTTPAccessLog.EnableResponseHeaders = params.HttpAccessLogEnableResponseHeaders config.HTTPAccessLog.EnableResponseHeaders = params.HttpAccessLogEnableResponseHeaders
config.HTTPAccessLog.CommonRequestHeadersOnly = params.HttpAccessLogCommonRequestHeadersOnly config.HTTPAccessLog.CommonRequestHeadersOnly = params.HttpAccessLogCommonRequestHeadersOnly
config.HTTPAccessLog.EnableCookies = params.HttpAccessLogEnableCookies config.HTTPAccessLog.EnableCookies = params.HttpAccessLogEnableCookies
config.HTTPAccessLog.EnableServerNotFound = params.HttpAccessLogEnableServerNotFound
// 日志 // 日志
config.Log.RecordServerError = params.LogRecordServerError config.Log.RecordServerError = params.LogRecordServerError

View File

@@ -77,6 +77,13 @@
<p class="comment">选中后表示访问日志中记录Cookie内容。</p> <p class="comment">选中后表示访问日志中记录Cookie内容。</p>
</td> </td>
</tr> </tr>
<tr>
<td>记录找不到网站日志</td>
<td>
<checkbox name="httpAccessLogEnableServerNotFound" v-model="config.httpAccessLog.enableServerNotFound"></checkbox>
<p class="comment">选中后,表示如果访客访问的域名对应的网站不存在也会记录日志。</p>
</td>
</tr>
</table> </table>
<h4>运行日志</h4> <h4>运行日志</h4>