[ome-users] insight.jnlp and Nginx redirection
Julien Jourde
julien.jourde at pasteur.fr
Fri Feb 1 14:42:58 GMT 2013
Le 01/02/13 15:20, Niko Ehrenfeuchter a écrit :
> On 01.02.2013 15:12, Niko Ehrenfeuchter wrote:
>> On 01.02.2013 15:09, Julien Jourde wrote:
>>> Hi Omero-users,
>>>
>>> I just installed a 4.4.5 omero server in my lab. Everything's fine
>>> except when I try to launch Insight using the jnlp protocol.
>>>
>>> The problem seems to come from the redirection of the port 80 to the
>>> port 443 in nginx.
>>>
>>> I'm using "rewrite ^ https://$server_name$request_uri? permanent;"
>>> in my
>>> omero.conf file to accomplish that. But the jnlp file can't deal with
>>> that. It contains urls like
>>> "http://my.omero.server.fr/webstart/jars/insight.jnlp" where it
>>> shoud be
>>> "https://my....". Launching the jnlp leads to a launchfile error
>>> because
>>> it tries to charge a web page unproperly created by nginx (see below).
>>>
>>> Did I made something wrong by using redirection rules ? Is there a way
>>> to do it more properly ?
>
> apparently we do have an exception for webstart in the rewrite rules:
>
>> if ( $uri !~ ^/webstart/jars/insight.jnlp ) {
>> rewrite ^ https://$server_name$request_uri? last;
>> }
>
> This workaround seems to get things going here, but anyway I think the
> hardcoded "http" in the jnlp file should rather get fixed.
>
> Cheers
> Niko
Thanks a lot for your answer. I'll try your solution. Hope it works !
Cheers
JJ
More information about the ome-users
mailing list