From c585edf5e244b54b1508501f8b0e2d3c9e7120ce Mon Sep 17 00:00:00 2001 From: Eric Ren Date: Mon, 19 Jan 2026 09:01:39 +0800 Subject: [PATCH] Add WebSocket Apache2 config for version 2.4.47+ Add Apache2 configuration for WebSocket support in version 2.4.47 and above. --- zh_CN/advanced/wss_and_web.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zh_CN/advanced/wss_and_web.md b/zh_CN/advanced/wss_and_web.md index d4c31f74..6b3f5bbd 100644 --- a/zh_CN/advanced/wss_and_web.md +++ b/zh_CN/advanced/wss_and_web.md @@ -165,6 +165,15 @@ mydomain.me ``` +#### Apache 配置(2.4.47及以上,无需proxy_wstunnel模块,需要proxy_http模块) +```plain + + ProxyPass http://127.0.0.1:10000/ray/ upgrade=WebSocket + ProxyAddHeaders Off + ProxyPreserveHost On + RequestHeader append X-Forwarded-For %{REMOTE_ADDR}s + +``` ### 客户端配置