Apache配置WebSocket代理

引入mod_proxy_wstunnel.so模块,使其可以解析ws、wss协议
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

配置代理路径跳转
ProxyPass "/myapp.ws" "ws://58.58.58.188:8888/myapp.ws"

参考:

https://blog.csdn.net/yangkunlin/article/details/82843017

原文地址:https://www.cnblogs.com/coffee_cn/p/11957000.html