Apache2.4.6 和 wstunnel 无法将代理更正为 tomcat7

Apache2.4.6 和 wstunnel 无法将代理更正为 tomcat7

我已正确使用代理,但我的 websockets 一直给我一个意外的 200 响应错误。我在 chrome 和 firefox 上使用本机 websockets。

我的配置文件如下所示

<VirtualHost example.com:80>
ServerName example.com
ProxyRequests Off
ProxyPass /websocket/ ws://localhost:8080/XXXXX/websocket/ retry=0
ProxyPassReverse /websocket/ ws://localhost:8080/XXXXX/websocket/ retry=0
ProxyPass / http://localhost:8080/XXXXX/
ProxyPassReverse / http://localhost:8080/XXXXX/
ProxyPassReverseCookiePath /XXXXX /
</VirtualHost>

这是确切的错误。

Error during WebSocket handshake: Unexpected response code: 200

任何帮助都将非常有帮助,我无法删除 apache。

相关内容