Proxy websocket wss:// to ws:// apache

后端 未结 6 756
自闭症患者
自闭症患者 2021-02-02 02:15

i searched alot but i couldnt connect my websocket to wss:// , i found that there is a way to proxy wss://domain.com:9090 and apache apply the proxy on it and redirect request

6条回答
  •  一生所求
    2021-02-02 02:31

    I did it for aria 2. I just enabled some modules and added a single line to config. (env: debian buster/apache 2.4). enabling modes:

    sudo a2enmod proxy proxy_balancer proxy_wstunnel proxy_http
    

    and add this line to ssl site config file inside the virtual host directive :

    ProxyPass /jsonrpc ws://127.0.0.1:6888/jsonrpc
    

提交回复
热议问题