1、首先修改httpd.conf
LoadModule proxy_ftp_module modules/mod_proxy.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
将注释去掉
2、修改vhosts
ServerName crm.adks01.cnErrorLog "logs/crm.adks.cn.error.log"CustomLog "logs/crm.adks.cn.access.log" commonProxyPass /websocket/ ws://127.0.0.1:8081/websocket/ProxyPass / http://127.0.0.1:8081/ProxyPassReverse / http://127.0.0.1:8081/
添加 ProxyPass /websocket/ ws://127.0.0.1:8081/websocket/ 这段 根据自己实际的项目路径去写
配好后 重启apache