From b34b2eb9640f88def02ba18c2df89fd670bd58e9 Mon Sep 17 00:00:00 2001 From: LiJianzhu <1827642641@qq.com> Date: Sun, 4 Aug 2024 22:39:54 +0800 Subject: [PATCH] Update wss_and_web.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更改了proxy_pass一行,因为原来的proxy_pass http://127.0.0.1:10000会导致v2ray收到路径“/”而不是/路径“ray”,进而返回404,从而使nginx返回nginx的404页面 --- zh_CN/advanced/wss_and_web.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh_CN/advanced/wss_and_web.md b/zh_CN/advanced/wss_and_web.md index d4c31f74..1b8d6c83 100644 --- a/zh_CN/advanced/wss_and_web.md +++ b/zh_CN/advanced/wss_and_web.md @@ -90,7 +90,7 @@ server { return 404; } proxy_redirect off; - proxy_pass http://127.0.0.1:10000; # 假设WebSocket监听在环回地址的10000端口上 + proxy_pass http://127.0.0.1:10000/ray; # 假设WebSocket监听在环回地址的10000端口上 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";