通过宝塔配置workermna wss服务

https://www.workerman.net/doc/workerman/appendices/about-websocket.html

https://www.workerman.net/doc/workerman/faq/secure-websocket-server.html

apache

准备工作:

1、GatewayWorker 监听 8181 端口(websocket协议)

2、已经申请了ssl证书, 假设放在了/www/server/panel/vhost/cert/luqihong.com/下

3、利用apache转发443端口至指定端口8181

4、httpd-ssl.conf 已加载

5、openssl 已安装

启用 proxy_wstunnel_module 模块

nginx

 

 

客户端

 

qihong lu