<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt"><div><span style="font-size: 13px;">Hi</span></div><div><span style="font-size: small;"><br></span></div><div style="color: rgb(0, 0, 0); background-color: transparent; font-style: normal; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"><span style="font-size: 13px;"><span style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;">I complied offscreen OSMesa ParaViewWeb, but I do not know how to use Apache as front-end. I have followed both "</span><font><a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/apache_setup">How to use Apache as Frotn-end</a></font>" and "<a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2">How
 to set up an Amazon EC2 AMI instance to run ParaViewWeb</a>" guides, but I could not get it to work. </span></div><div style="color: rgb(0, 0, 0); background-color: transparent; font-style: normal;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;"><br></span></div><div style="color: rgb(0, 0, 0); background-color: transparent; font-style: normal; font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;">I run the command "java -jar JettySessionManager-Server-1.1.jar pw-config.properties", and then I input the link  <a href="http://localhost:9000/apps/Visualizer,">http://localhost:9000/apps/Visualizer</a> on the browser. I always got the following error:</span></div><div style="color: rgb(0, 0, 0); background-color: transparent; font-style: normal; font-size: 13px; font-family: HelveticaNeue,
 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;"><br></span></div><div style="background-color: transparent;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;">2014-04-16 23:45:23.355:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT</span></div><div style="background-color: transparent;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;">2014-04-16 23:45:23.487:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:9000</span></div><div style="background-color: transparent;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;">Apr 16, 2014 11:45:37 PM com.kitware.paraviewweb.websocket.WebSocketForwarder onOpen </span><span style="font-size: 13px; background-color: transparent;">INFO: null</span></div><div style="background-color: transparent;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size:
 13px;">java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused</span></div><div style="background-color: transparent;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;"><span class="Apple-tab-span" style="white-space:pre">       </span>at org.eclipse.jetty.websocket.WebSocketClient$WebSocketFuture.get(WebSocketClient.java:569)</span></div><div style="background-color: transparent;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;"><span class="Apple-tab-span" style="white-space:pre">    </span>at org.eclipse.jetty.websocket.WebSocketClient$WebSocketFuture.get(WebSocketClient.java:372)</span></div><div style="background-color: transparent;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;"></span></div><div style="background-color: transparent;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;"><span class="Apple-tab-span" style="white-space:pre">        </span>at
 com.kitware.paraviewweb.websocket.WebSocketForwarder.onOpen(WebSocketForwarder.java:54)</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;">..........................</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="yui_3_13_0_8_1397705607984_17"><span style="font-size: 13px;">..........................</span></div><div><br></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: small;"> </span></div><div><span
 style="font-size: 13px;">  I feel I did not missed any steps while following the </span><span style="font-size: 13px;"> "</span><a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2" style="background-color: rgb(255, 255, 255); font-size: 13px;">How to set up an Amazon EC2 AMI instance to run ParaViewWeb</a><span style="font-size: 13px;">" guide, but I always get the above error when I run it. I use </span><span style="font-size: 13px;">apache-2.4.9 since I could not find apache-2.4.7 online. I attached </span><span style="font-size: 13px;">pw-config.properties.  I run everything on Localhost first because I do not want to screw up my Amazon EC2 instance. </span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style:
 normal;"><span style="font-size: 13px;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;">Is it okay to put </span><span style="background-color: rgb(247, 247, 247); font-family: Menlo, 'Courier New', Courier, monospace; line-height: 13px; white-space: pre-wrap;">ServerName <a href="http://127.0.1.1/">127.0.1.1</a> instead of my instance DNS name since I am running on localhost? Thank you!</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
 Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"></span></div><pre id="ext-gen1430" class="prettyprint" style="margin-top: 10px; margin-bottom: 14px; padding: 10px 12px; font-family: Menlo, 'Courier New', Courier, monospace; line-height: 1.3em; box-sizing: border-box; border: 1px solid rgb(232, 232, 232); background-color: rgb(247, 247, 247); border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; color: rgb(49, 78, 100); max-width: 900px; overflow-x: auto; overflow-y: hidden; font-size: 13px;"><code id="ext-gen1431" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-style: inherit;
 font-weight: inherit; font-family: Menlo, 'Courier New', Courier, monospace; line-height: 13px; box-sizing: border-box;"><span class="tag" style="box-sizing: border-box; color: rgb(0, 0, 136);"><VirtualHost</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> *:80</span><span class="tag" style="box-sizing: border-box; color: rgb(0, 0, 136);">></span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">
    ServerName ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com
    ServerAdmin webmaster@example-host.example.com
    DocumentRoot "/var/www/pvweb-deploy/www"
    ErrorLog "logs/pv-error_log"
    CustomLog "logs/pv-access_log" common

    ProxyPass /paraview http://localhost:9000/paraview

    # Turn on the rewrite engine
    RewriteEngine On

    # This is the path the mapping file Jetty creates
    RewriteMap session-to-port txt:/opt/apache-2.4.7/pv-mapping-file/mapping.txt

    # 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.
    RewriteCond %{QUERY_STRING}     ^sessionId=(.*)$ [NC]

    # This does the rewrite using the mapping file and the sessionId
    RewriteRule    ^/proxy.*$  ws://${session-to-port:%1}/ws  [P]

    </span><span class="tag" style="box-sizing: border-box; color: rgb(0, 0, 136);"><Directory</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="atv" style="box-sizing: border-box; color: rgb(0, 136, 0);">"/var/www/pvweb-deploy/www"</span><span class="tag" style="box-sizing: border-box; color: rgb(0, 0, 136);">></span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">
        Options Indexes FollowSymLinks
        Order allow,deny
        Allow from all
        AllowOverride None
        Require all granted
    </span><span class="tag" style="box-sizing: border-box; color: rgb(0, 0, 136);"></Directory></span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">

</span><span class="tag" style="box-sizing: border-box; color: rgb(0, 0, 136);"></VirtualHost></span></code></pre><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><br></span></div><div><br></div></div></body></html>