From ac82cef655a63907d8e511ed52b4d0cb3ced44ec Mon Sep 17 00:00:00 2001 From: Expyh Date: Sat, 14 Jan 2023 22:09:42 +0800 Subject: [PATCH] Update ch07-xray-server.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xray配置中的tlsSettings应该加上"alpn": "http/1.1",否则按照教程【服务器优化之二:开启 HTTP 自动跳转 HTTPS】操作之后,网站无法正常访问,访问网站的时候会出现ERR_HTTP2_PROTOCOL_ERROR,但xray还是可以正常工作的。 --- docs/document/level-0/ch07-xray-server.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/document/level-0/ch07-xray-server.md b/docs/document/level-0/ch07-xray-server.md index 46351a0..a4eea54 100644 --- a/docs/document/level-0/ch07-xray-server.md +++ b/docs/document/level-0/ch07-xray-server.md @@ -279,6 +279,7 @@ "network": "tcp", "security": "tls", "tlsSettings": { + "alpn": "http/1.1", "certificates": [ { "certificateFile": "/home/vpsadmin/xray_cert/xray.crt",