apache - 如何将 websocket 请求从 Apache httpd 转发到 Apache Tomcat?

标签 apache tomcat websocket atmosphere

我有像 Apache2 + mod_jk + 两个 Tomcat 实例 (7.0.33) 这样的服务器设置。现在我正在使用 tomcat 的 Atmosphere 。长轮询的 Atmosphere 工作得很好。但是现在我想在 Atmosphere 中使用网络套接字作为传输协议(protocol)。但似乎 Apache 无法将请求转发给 Tomcat,它给了我错误

Can't establish a connection to the server at ws://localhost/Myapp/update/?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json.

最佳答案

从 Apache 2.4.6 开始,Apache httpd 转发/代理 websockets

关于apache - 如何将 websocket 请求从 Apache httpd 转发到 Apache Tomcat?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15405729/

相关文章:

java - 如何在 Fedora 20 中安装 Apache Tomcat

tomcat - 在 Mac 上的 Xampp 中安装 Tomcat 的位置和方法

java - 无法使用 CXF/MTOM 接收所有文档

php - 在一台服务器中重定向 2 个域的问题

java - 具有纯 JDBC-JNDI :javax. naming.NameNotFoundException : Name [jdbc/KDB] is not bound in this Context. 无法找到 [jdbc] 的 Tomcat 8.5

c++ - WebSocket,解码数据帧(c++)

azure - SignalR核心: is ARR affinity needed when web sockets are enabled and the Azure app service is scaled out to multiple instances?

node.js - 为什么我的应用程序不能在 Heroku 上建立 websocket 连接?

php - 在 Ajax : any configuration difference between Nginx and Apache

php - Apache2 在 Linux Mint 17 KDE 中失败