Connection error in paraview lite


I am trying to run paraview web from office system (using ssh from local system) and wanted to view the visualization from local browser and with different server name. To this, I modified the apache2 config file and launcher file as below.

Apach2 001-pvw.conf - Here I am using servername as testpvw

<VirtualHost *:80>
      ServerName  testpvw
      DocumentRoot /home/data/www

      ErrorLog /home/data/logs/apache_error.log
      CustomLog /home/data/logs/apache_access.log combined

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

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

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

Launcher.json file - Here I am using the servername “testpvw” and placed in sessionURL as host

    "resources": [ {"port_range": [9001, 9103], "host": "localhost"} ],
    "configuration": {
      "log_dir": "/home/data/pvw/logs",
      "host": "localhost",
      "proxy_file": "/home/data/proxy.txt",
      "endpoint": "paraview",
      "sessionURL": "ws://testpvw:80/proxy?sessionId=${id}&path=ws",
      "timeout": 5,
      "fields": ["host", "port"],
      "port": 8080

 "properties": {
      "web_path": "/home/data/pv/pv-5.9.0/share/paraview-5.9/web",
      "python_exec": "/home/data/pv/pv-5.9.0/bin/pvpython",
      "dataDir": "/home/data/pvw"
    "apps": {
      "paraview-lite": {
        "cmd": [
          "--port", "${port}",
          "--data", "${dataDir}/${data}",
          "--authKey", "${secret}"
        "ready_line" : "Starting factory"

  1. When I run the web link as http://testpvw/lite nothing displays and when I run http://<ip-address>/lite, the paraview lite page displays. When I click “connect to paraview”, it shows Connection error.

  2. The logs are displayed for running http://<ip-address>/lite as follows:

a. launcherLog.log

2021-10-27 16:45:49,878:INFO:root:Post started
2021-10-27 16:45:49,878:INFO:root:{'application': 'paraview-lite'}
2021-10-27 16:45:49,878:INFO:root:request contents
2021-10-27 16:45:49,878:INFO:root:Create new session
2021-10-27 16:45:49,892:INFO:root:inside createSession id: 3d9a058c-3717-11ec-a748-d89ef315cbb6
2021-10-27 16:45:49,892:ERROR:root:Some properties could not be resolved: /home/data/pvw/${data}
2021-10-27 16:45:49,892:INFO:root:Session created
2021-10-27 16:45:54,899:INFO:twisted:"" - - [27/Oct/2021:11:15:53 +0000] "POST /paraview/ HTTP/1.1" 200 175 "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36"

b. The log creates a new txt file which contains:

wslink: Starting factory
CRITICAL:twisted:wslink: Starting factory

c. The apache_access.log or apache_error.log does not give any feedback to it.

So my question is,

  1. How to host the pvw with diffrent servername from local browser running in ssh server.?
  2. What work around should be done in order to connect the apache2 and launcher so that the apache is accessed?

Sunag R A.