# My cerbo is on 10.0.50.52

  RewriteEngine on
  RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
  RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
  RewriteRule .* ws://10.0.50.52:81%{REQUEST_URI} [P]

        <Location /websockify>
            ProxyPass ws://10.0.50.52:81
            ProxyPassReverse ws://10.0.50.52:81
        </Location>


ProxyPreserveHost On
ProxyPass        / http://10.0.50.52:80/
ProxyPassReverse / http://10.0.50.52:80/

By karlo