NGINX配置如下
修改您的站点配置文件 ,在service{} 块下任意位置添加如下配置
location /yzdlawyer { proxy_pass http://127.0.0.1:8283; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Real-IP $remote_addr; }
APACHE配置如下
确保Apache开启了以下模块
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.soApache站点中添加以下配置 (注意:写在 <VirtualHost *:443> … 块中)
# Proxy Config SSLProxyEngine on ProxyRequests Off #云之道律师小程序 ProxyPass /yzdlawyer ws://127.0.0.1:8283 ProxyPassReverse /yzdlawyer ws://127.0.0.1:8283 #结束
云之道律师小程序下载地址:https://www.taobaodaji.com/66902.html