From 1a19c7520adb72e5acc02fda0b58829df18149db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 23 May 2022 14:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@default/servers/components/index.html | 74 ++++++++++--------- .../@default/servers/components/index.js | 15 +++- 2 files changed, 49 insertions(+), 40 deletions(-) diff --git a/web/views/@default/servers/components/index.html b/web/views/@default/servers/components/index.html index 1554e05a..a84d711a 100644 --- a/web/views/@default/servers/components/index.html +++ b/web/views/@default/servers/components/index.html @@ -19,43 +19,45 @@

如果选择了严格匹配域名,找不到匹配的域名时会采取对应的动作。

- - 默认域名 - - -

当找不到匹配的域名时,自动使用此域名。

- - - - 允许不匹配的域名 - - -

允许这些域名即时不匹配也可以访问。

- - - - 域名不匹配时的动作 - - 断开连接 -     - 显示提示页面 + + + 默认域名 + + +

当找不到匹配的域名时,自动使用此域名。

+ + + + 允许不匹配的域名 + + +

允许这些域名即时不匹配也可以访问。

+ + + + 域名不匹配时的动作 + + 断开连接 +     + 显示提示页面 -

当找不到要访问的域名时关闭客户端连接。

-

当找不到访问的域名时显示一个提示页面。

- - - - 响应代码 - - - - - - 域名不匹配时的动作页面 - - - - +

当找不到要访问的域名时关闭客户端连接。

+

当找不到访问的域名时显示一个提示页面。

+ + + + 响应代码 + + + + + + 域名不匹配时显示的页面 + + + + + diff --git a/web/views/@default/servers/components/index.js b/web/views/@default/servers/components/index.js index 6b728af6..06b68785 100644 --- a/web/views/@default/servers/components/index.js +++ b/web/views/@default/servers/components/index.js @@ -30,13 +30,20 @@ Tea.context(function () { 404 not found + -

找不到您要访问的页面.

-

Sorry, page not found.

+

Error: 404 Page Not Found

+

找不到您要访问的页面。

+ +

原因:找不到当前访问域名对应的网站,请联系网站管理员。

+ - -` +` } if (this.globalConfig.httpAll.domainMismatchAction != null) { this.domainMismatchAction = this.globalConfig.httpAll.domainMismatchAction.code