    <VirtualHost *:80>
      ServerName   localhost
      ServerAdmin  lifeandfree@gmail.com
      DocumentRoot /data/www

      ErrorLog /data/logs/error.log
      CustomLog /data/logs/access.log combined

      <Directory /data/www>
          Options Indexes FollowSymLinks
          Order allow,deny
          Allow from all
          AllowOverride None
          Require all granted
      </Directory>

      # Handle launcher forwarding
      ProxyPass /paraview http://localhost:8080/paraview

      # Handle WebSocket forwarding
      RewriteEngine On
      RewriteMap  session-to-port  txt:/data/proxy.txt
      RewriteCond %{QUERY_STRING}  ^sessionId=(.*)$               [NC]
      RewriteRule ^/proxy.*$       ws://${session-to-port:%1}/ws  [P]
    </VirtualHost>
