<div dir="ltr">Sorry to catch up so late but the possible reason why it was not working before was the file generated does not have the same format.<div><br></div><div>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Dec 3, 2013 at 1:07 PM, Bogdan Daqui Herrera <span dir="ltr"><<a href="mailto:bdaqui@simscale.de" target="_blank">bdaqui@simscale.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Sebastian,<br>
<br>
I have switched to Apache-2.4.7 and used the second configuration, as<br>
you recommended. It works now exactly as expected.<br>
<br>
Thanks for the help!<br>
<div class="im">Bogdan<br>
<br>
On 03.12.2013 15:55, Sebastien Jourdain wrote:<br>
</div><div class="im">> Are you using Apache 2.4+ ? There is 2 ways to do web socket forwarding<br>
> with Apache.<br>
><br>
> <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/apache_setup" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/apache_setup</a><br>
><br>
> and<br>
><br>
> <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2</a><br>
><br>
> But I would recommend the second one if you can choose.<br>
><br>
> Seb<br>
><br>
><br>
> On Tue, Dec 3, 2013 at 7:26 AM, Bogdan Daqui Herrera <<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a>>> wrote:<br>
><br>
> Hi Seb,<br>
><br>
> A follow-up on this. The session map file is created and it is written<br>
> correctly, so I can say the original issue is solved. However I am still<br>
> having some problems with the rest of the setup for the following<br>
> scenario:<br>
><br>
> -Apache Front-end serving a page through an SSL secured connection on<br>
> port 443.<br>
> -Jetty session manager working on the server on ports 9000-9100 (which<br>
> are of course not encrypted, but are behind the apache front-end).<br>
> -The session url is specifiend in the default-config.properties file as:<br>
> pw.factory.session.url.generator.pattern=ws://mydomain:443/proxy?sessionId=SESSION_ID<br>
><br>
> This does not work, though. There is no reaction on the browser and no<br>
> visible error message in the server logs. Changing to wss, yields a<br>
> connection which is closed instantly.<br>
><br>
> If however generate the sessionURL on port 9000 (unencrypted) the remote<br>
> browser-based paraview session works with most browsers, except Firefox,<br>
> which gives a security error due to the https-ws(unsecured socket)<br>
> combination.<br>
><br>
> My assumption is that with the Apache front-end all traffic would be<br>
> channelled through port 443 and the session manager would interact only<br>
> with it, not with the browser directly.<br>
><br>
> Thanks again for the kind replies!<br>
> Bogdan<br>
><br>
> On 26.11.2013 17:31, Sebastien Jourdain wrote:<br>
> > The answer is available in that online guide<br>
> ><br>
> ><br>
> <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2</a><br>
> ><br>
> > In this section:<br>
> ><br>
> ><br>
> |pw.factory.proxy.adapter=com.kitware.paraviewweb.external.ApacheModRewriteMapFileConnectionAdapter|<br>
> ><br>
> > |<br>
> ><br>
> ><br>
> |pw.factory.proxy.adapter.file=/opt/apache-2.4.6/pv-mapping-file/mapping.txt|<br>
> ><br>
> > |<br>
> > Seb<br>
> ><br>
> > On Tue, Nov 26, 2013 at 9:22 AM, Bogdan Daqui Herrera<br>
> > <<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a> <mailto:<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a>><br>
</div></div><div><div class="h5">> <mailto:<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a> <mailto:<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a>>>> wrote:<br>
> ><br>
> > Hello all,<br>
> ><br>
> > I am also testing a deployment of ParaviewWeb with the Apache<br>
> front-end<br>
> > and am encountering a problem with the configuration.<br>
> ><br>
> > The guide describing the process makes reference to the file<br>
> > session.map, which should be generated by the session manager.<br>
> ><br>
> > The session manager does not generate one by default and have been<br>
> > unable to find how and where in the settings its path can be<br>
> written or<br>
> > whether it has to be created.<br>
> ><br>
> > Looking through the source code of the session manager, there<br>
> are two<br>
> > classes that should generate this file:<br>
> JsonFileProxyConnectionAdapter<br>
> > and ApacheModRewriteMapFileConnectionAdapter.<br>
> ><br>
> > Could you please help me with a quick explanation of how to<br>
> configure<br>
> > the session manager so the session.map file is generated?<br>
> ><br>
> > Kind regards,<br>
> > Bogdan Daqui<br>
> ><br>
> > --<br>
> > Bogdan Daqui<br>
> > Software Development<br>
> ><br>
> > SimScale GmbH<br>
> > Lichtenbergstraße 8<br>
> > 85748 Garching bei München<br>
> ><br>
> > Phone: <a href="tel:%2B49%20%280%2989%203398%204078" value="+498933984078">+49 (0)89 3398 4078</a><br>
> <tel:%2B49%20%280%2989%203398%204078><br>
> <tel:%2B49%20%280%2989%203398%204078><br>
> > Email: <a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a> <mailto:<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a>><br>
</div></div>> <mailto:<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a> <mailto:<a href="mailto:bdaqui@simscale.de">bdaqui@simscale.de</a>>><br>
<div class="HOEnZb"><div class="h5">> ><br>
> > Amtsgericht München, HRB 201813<br>
> > Geschäftsführer: Vincenz Dölle & David Heiny<br>
> ><br>
> > <a href="http://www.simscale.de" target="_blank">http://www.simscale.de</a><br>
> > _______________________________________________<br>
> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Please keep messages on-topic and check the ParaView Wiki at:<br>
> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
> ><br>
> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>