From 5176a9ea416cfb0a60ba0e2f0750d3d7ac709e29 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 12 Jul 2023 17:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E7=BE=A4=E8=AE=BE=E7=BD=AE--=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E8=AE=BE=E7=BD=AE=E5=A2=9E=E5=8A=A0=E2=80=9C=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E6=97=97=E6=A0=87=E2=80=9D=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cluster/settings/global-server-config/index.go | 4 +++- .../cluster/settings/global-server-config/index.html | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) 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 8195c93d..4b70695f 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 @@ -81,10 +81,11 @@ func (this *IndexAction) RunPost(params struct { HttpAllDefaultDomain string HttpAllNodeIPPageHTML string HttpAllNodeIPShowPage bool - HttpAllForceLnRequest bool + HttpAllServerName string HttpAllSupportsLowVersionHTTP bool HttpAllMatchCertFromAllServers bool + HttpAllForceLnRequest bool HttpAccessLogIsOn bool HttpAccessLogEnableRequestHeaders bool @@ -146,6 +147,7 @@ func (this *IndexAction) RunPost(params struct { config.HTTPAll.NodeIPPageHTML = params.HttpAllNodeIPPageHTML // HTTP All + config.HTTPAll.ServerName = params.HttpAllServerName config.HTTPAll.SupportsLowVersionHTTP = params.HttpAllSupportsLowVersionHTTP config.HTTPAll.MatchCertFromAllServers = params.HttpAllMatchCertFromAllServers config.HTTPAll.ForceLnRequest = params.HttpAllForceLnRequest 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 003344a0..eadb5d64 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 @@ -147,7 +147,14 @@

其他

- + + + + +
支持低版本HTTP服务器旗标 + +

服务器旗标会以Server: 旗标的形式出现在响应报头中。

+
支持低版本HTTP

选中后,表示支持HTTP/1.0、HTTP/0.9等低于HTTP/1.1版本的HTTP协议。低版本HTTP协议不支持分段传输内容,且无法保持连接,对系统性能有严重的负面影响。建议只有在你的用户正在使用非常老旧的设备时才启用此选项。