From 53f0474aac2773bac32b4dcbbc1643e06ba7fc5a Mon Sep 17 00:00:00 2001 From: Expyh Date: Sat, 14 Jan 2023 22:01:18 +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..b91c4ca 100644 --- a/docs/document/level-0/ch07-xray-server.md +++ b/docs/document/level-0/ch07-xray-server.md @@ -280,6 +280,7 @@ "security": "tls", "tlsSettings": { "certificates": [ + "alpn": "http/1.1", { "certificateFile": "/home/vpsadmin/xray_cert/xray.crt", "keyFile": "/home/vpsadmin/xray_cert/xray.key"