How to setup Apache reverse proxy support of Websockets

  1. first of all change following variable to false www\software\html5\settings.js > W.xhrreverse = false; (if you don't change it to false, it will always try xhr instead websockets, what we don't want anymore)
  2. install Apache with proxywstunnel support (older Apaches without proxywstunnel are unsupported!)
  3. allow in Apache config (httpd.conf etc.) following modules. LoadModule proxymodule modules/modproxy.so LoadModule proxyhttpmodule modules/modproxyhttp.so LoadModule proxywstunnelmodule modules/modproxywstunnel.so

  4. let's assume you want to access html5 main portal via subfolder "/html5/" As example http://youripor_domain.net/html5/ And Tsplus is installed in intranet on server "intranetxyz" then add to the config (httpd.conf etc.) following

    ProxyPass /html5 http://intranetxyz:80 ProxyPassReverse /html5 http://intranetxyz:80

    ProxyPass "ws://intranetxyz:80/socket.io/websocket_https"

    ProxyPass "ws://intranetxyz:80/socket.io/websocket"

    ProxyPass "ws://intranetxyz:80/socket.io/flashsocket_https"

    ProxyPass "ws://intranetxyz:80/socket.io/flashsocket"

  5. Restart Apache to take changes effect.