{"action":"created","issue":{"url":"https://api.github.com/repos/Kitware/paraviewweb/issues/232","repository_url":"https://api.github.com/repos/Kitware/paraviewweb","labels_url":"https://api.github.com/repos/Kitware/paraviewweb/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/Kitware/paraviewweb/issues/232/comments","events_url":"https://api.github.com/repos/Kitware/paraviewweb/issues/232/events","html_url":"https://github.com/Kitware/paraviewweb/issues/232","id":177815967,"number":232,"title":"Set up of files:  001-pvw.conf and launcher.config","user":{"login":"chris2009","id":17788720,"avatar_url":"https://avatars.githubusercontent.com/u/17788720?v=3","gravatar_id":"","url":"https://api.github.com/users/chris2009","html_url":"https://github.com/chris2009","followers_url":"https://api.github.com/users/chris2009/followers","following_url":"https://api.github.com/users/chris2009/following{/other_user}","gists_url":"https://api.github.com/users/chris2009/gists{/gist_id}","starred_url":"https://api.github.com/users/chris2009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris2009/subscriptions","organizations_url":"https://api.github.com/users/chris2009/orgs","repos_url":"https://api.github.com/users/chris2009/repos","events_url":"https://api.github.com/users/chris2009/events{/privacy}","received_events_url":"https://api.github.com/users/chris2009/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-19T15:25:30Z","updated_at":"2016-09-19T20:09:55Z","closed_at":null,"body":"Hi!,\r\n\r\nI have been trying set up paraviewweb to work with multiple sessions in one machine but I have had problems in how configure these files: 001-pvw.conf and launcher.config. They look this:\r\n```\r\n==============================================================================\r\nlauncher.config\r\n=================================================================================\r\n{\r\n  ## ===============================\r\n  ## General launcher configuration\r\n  ## ===============================\r\n  \"configuration\": {\r\n    \"host\" : \"192.168.1.8:8080,                           # name of network interface to bind for launcher webserver\r\n    \"port\" : 8080,                                  # port to bind for launcher webserver\r\n    \"endpoint\": \"paraview\",                         # SessionManager Endpoint\r\n    \"content\": \"/.../www\",                          # Optional: Directory shared over HTTP\r\n    \"proxy_file\" : \"/home/christian/Escritorio/mapping-file/proxy.txt\",  # Proxy-Mapping file for Apache\r\n    \"sessionURL\" : \"ws://192.168.1.8:8080/ws\",       # ws url used by the client to connect to started process\r\n    \"timeout\" : 5,                                  # Wait time in second after process start\r\n    \"log_dir\" : \"/.../viz-logs\",                    \r\n# Directory for log files\r\n    \"upload_dir\" : \"/.../uploadDirectory\",          # Start file upload server on same port as launcher\r\n    \"fields\" : [\"file\", \"host\", \"port\", \"updir\"]    # Fields not listed are filtered from response\r\n  },\r\n  ## ===============================\r\n  ## Resources list for applications\r\n  ## ===============================\r\n  \"resources\" : [ { \"host\" : \"http://192.168.1.8:8080/apps/Visualizer/\", \"port_range\" : [9001, 9003] } ],\r\n  ## ===============================\r\n  ## Set of properties for cmd line\r\n  ## ===============================\r\n  \"properties\" : {\r\n    \"build_dir\" : \"/.../build\",\r\n    \"python_exec\" : \"/.../build/bin/vtkpython\",\r\n    \"WWW\" : \"/.../build/www\",\r\n    \"source_dir\": \"/.../src\"\r\n  },\r\n  ## ===============================\r\n  ## Application list with cmd line\r\n  ## ===============================\r\n  \"apps\": {\r\n    \"pipeline\": {\r\n      \"cmd\": [\r\n        \"${python_exec}\", \"-dr\", \"${python_path}/paraview/web/pv_web_visualizer.py\",\r\n        \"--port\", \"${port}\", \"--data-dir\", \"${dataDir}\", \"-f\", \"--authKey\", \"${secret}\"\r\n      ],\r\n      \"ready_line\" : \"Starting factory\"\r\n    },\r\n    \"visualizer\": {\r\n        \"cmd\": [\r\n            \"${python_exec}\", \"-dr\", \"${python_path}/paraview/web/pv_web_visualizer.py\",\r\n            \"--port\", \"${port}\", \"--data-dir\", \"${dataDir}\", \"-f\", \"--authKey\", \"${secret}\"\r\n        ],\r\n        \"ready_line\" : \"Starting factory\"\r\n    },\r\n    \"loader\": {\r\n        \"cmd\": [\r\n            \"${python_exec}\", \"-dr\", \"${python_path}/paraview/web/pv_web_file_loader.py\",\r\n            \"--port\", \"${port}\", \"--data-dir\", \"${dataDir}\", \"-f\", \"--authKey\", \"${secret}\"\r\n        ],\r\n        \"ready_line\" : \"Starting factory\"\r\n    },\r\n    \"data_prober\": {\r\n        \"cmd\": [\r\n            \"${python_exec}\", \"-dr\", \"${python_path}/paraview/web/pv_web_data_prober.py\",\r\n            \"--port\", \"${port}\", \"--data-dir\", \"${dataDir}\", \"-f\", \"--authKey\", \"${secret}\"\r\n        ],\r\n        \"ready_line\" : \"Starting factory\"\r\n==============================================================================\r\n```==\r\n==============================================================================\r\n001-pvw.conf\r\n==================================================================================\r\n\r\n<VirtualHost *:80>\r\n    ServerName 192.168.1.8:8080\r\n    ServerAdmin webmaster@example-host.example.com\r\n    DocumentRoot /home/christian/Escritorio/Proyecto/build/www\r\n    ErrorLog ${APACHE_LOG_DIR}/error.log\r\n    CustomLog ${APACHE_LOG_DIR}/access.log combined\r\n    ### The following commented lines could be useful when running\r\n    ### over https and wss:\r\n    # SSLEngine On\r\n    # SSLCertificateFile    /etc/apache2/ssl/your_certificate.crt\r\n    # SSLCertificateKeyFile /etc/apache2/ssl/your_domain_key.key\r\n    # SSLCertificateChainFile /etc/apache2/ssl/DigiCertCA.crt\r\n    # <Location /home/christian/Escritorio/Proyecto/build/www>\r\n    #   SSLRequireSSL On\r\n    #   SSLVerifyClient optional\r\n    #   SSLVerifyDepth 1\r\n    #   SSLOptions +StdEnvVars +StrictRequire\r\n    # </Location>\r\n\r\n\r\n    # Rule for ParaViewWeb launcher\r\n    ProxyPass /paraview http://localhost:8080/paraview\r\n\r\n    # Rewrite setup for ParaViewWeb\r\n    RewriteEngine On\r\n\r\n    # This is the path the mapping file Jetty creates\r\n    RewriteMap session-to-port txt:/home/christian/Escritorio/mapping-file/proxy.txt\r\n\r\n    # This is the rewrite condition. Look for anything with a sessionId= in the query part of the URL and capture the value to use below.\r\n    RewriteCond %{QUERY_STRING}     ^sessionId=(.*)&path=(.*)$ [NC]\r\n    # This does the rewrite using the mapping file and the sessionId\r\n    RewriteRule    ^/proxy.*$  ws://${session-to-port:%1}/%2  [P]\r\n    <Directory \"/home/christian/Escritorio/Proyecto/build/www\">\r\n        Options Indexes FollowSymLinks\r\n        Order allow,deny\r\n        Allow from all\r\n        AllowOverride None\r\n        Require all granted\r\n    </Directory>\r\n    \r\n</VirtualHost>\r\n\r\nI would like to know if this configuration is the correct.\r\n\r\nThank you for your time."},"comment":{"url":"https://api.github.com/repos/Kitware/paraviewweb/issues/comments/248109930","html_url":"https://github.com/Kitware/paraviewweb/issues/232#issuecomment-248109930","issue_url":"https://api.github.com/repos/Kitware/paraviewweb/issues/232","id":248109930,"user":{"login":"chris2009","id":17788720,"avatar_url":"https://avatars.githubusercontent.com/u/17788720?v=3","gravatar_id":"","url":"https://api.github.com/users/chris2009","html_url":"https://github.com/chris2009","followers_url":"https://api.github.com/users/chris2009/followers","following_url":"https://api.github.com/users/chris2009/following{/other_user}","gists_url":"https://api.github.com/users/chris2009/gists{/gist_id}","starred_url":"https://api.github.com/users/chris2009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris2009/subscriptions","organizations_url":"https://api.github.com/users/chris2009/orgs","repos_url":"https://api.github.com/users/chris2009/repos","events_url":"https://api.github.com/users/chris2009/events{/privacy}","received_events_url":"https://api.github.com/users/chris2009/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T20:09:55Z","updated_at":"2016-09-19T20:09:55Z","body":"Hi Jourdain,\r\n\r\nNow the launcher.config looks like that:\r\n```\r\n\r\n\r\n{\r\n  ## ===============================\r\n  ## General launcher configuration\r\n  ## ===============================\r\n  \"configuration\": {\r\n    \"host\" : \"192.168.1.8,                           # name of network interface to bind for launcher webserver\r\n    \"port\" : 8080,                                  # port to bind for launcher webserver\r\n    \"endpoint\": \"paraview\",                         # SessionManager Endpoint\r\n    \"content\": \"/home/christian/Escritorio/Proyecto/build/www\",                          # Optional: Directory shared over HTTP\r\n    \"proxy_file\" : \"/home/christian/Escritorio/mapping-file/proxy.txt\",  # Proxy-Mapping file for Apache\r\n    \"sessionURL\" : \"ws://192.168.1.8:8080/apps/Visualizer/\",       # ws url used by the client to connect to started process\r\n    \"timeout\" : 5,                                  # Wait time in second after process start\r\n    \"log_dir\" : \"/home/christian/Escritorio/Proyecto/build/log_dir\",                    # Directory for log files\r\n    \"upload_dir\" : \"/home/christian/Escritorio/Proyecto/build/upload_dir\",          # Start file upload server on same port as launcher\r\n    \"fields\" : [\"file\", \"host\", \"port\", \"updir\"]    # Fields not listed are filtered from response\r\n  },\r\n  ## ===============================\r\n  ## Resources list for applications\r\n  ## ===============================\r\n  \"resources\" : [ { \"host\" : \"http://192.168.1.8:8080/apps/Visualizer/\", \"port_range\" : [9001, 9003] } ],\r\n  ## ===============================\r\n  ## Set of properties for cmd line\r\n  ## ===============================\r\n  \"properties\" : {\r\n    \"build_dir\" : \"/home/christian/Escritorio/Proyecto/build\",\r\n    \"python_exec\" : \"/home/christian/Escritorio/Proyecto/build/bin/vtkpython\",\r\n    \"WWW\" : \"/home/christian/Escritorio/Proyecto/build/www\",\r\n    \"source_dir\": \"/home/christian/Escritorio/Proyecto/ParaView\"\r\n  },\r\n  ## ===============================\r\n  ## Application list with cmd line\r\n  ## ===============================\r\n  \"apps\": {\r\n    \"pipeline\": {\r\n      \"cmd\": [\r\n      ],\r\n      \"ready_line\" : \"Starting factory\"\r\n    },\r\n    \"visualizer\": {\r\n        \"cmd\": [\r\n            \"${python_exec}\", \"-dr\", \"${python_path}/paraview/web/pv_web_visualizer.py\",\r\n            \"--port\", \"${port}\", \"--data-dir\", \"${dataDir}\", \"-f\", \"--authKey\", \"${secret}\"\r\n        ],\r\n        \"ready_line\" : \"Starting factory\"\r\n    },\r\n    \"loader\": {\r\n        \"cmd\": [\r\n            \"${python_exec}\", \"-dr\", \"${python_path}/paraview/web/pv_web_file_loader.py\",\r\n            \"--port\", \"${port}\", \"--data-dir\", \"${dataDir}\", \"-f\", \"--authKey\", \"${secret}\"\r\n        ],\r\n        \"ready_line\" : \"Starting factory\"\r\n    },\r\n    \"data_prober\": {\r\n        \"cmd\": [\r\n            \"${python_exec}\", \"-dr\", \"${python_path}/paraview/web/pv_web_data_prober.py\",\r\n            \"--port\", \"${port}\", \"--data-dir\", \"${dataDir}\", \"-f\", \"--authKey\", \"${secret}\"\r\n        ],\r\n        \"ready_line\" : \"Starting factory\"\r\n```\r\n\r\n- I have a doubt, the directories: log_dir and upload_dir I have created by myself. It is correct?\r\n"}}
{"actor":{"display_login":"chris2009"}}