电脑技巧 OpenClaw 反代掉线:Nginx 代理 Web UI 后 WebSocket 实时日志不显示怎么配置? 作者提米哥 2026年3月7日 OpenClaw 的 Web UI 强依赖 WebSocket 将后端的实时打字流(Streaming)和日志推送到前端。如果通过 Nginx 代理后页面能打开但聊天框毫无反应,是因为 Nginx 拦截了 Upgrade 协议头部。请在你的 Nginx location 配置块中增加关键配置:`proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection “upgrade”;` 重载 Nginx 即可解决。