We're Hiring!

omero web start but

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Re: omero web start but

Postby phm » Fri Aug 29, 2014 7:37 am

Hi Kenneth,
Just to summarize the final configuration that I ended.
In a first time I installed CentOS 7, however it was impossible to get ICE working on python 2.7, the default version installed in CentOS 7. So I "downgrade" the server to version 6.5 to have python 2.6 and ICE 3.5. I defined these file system partitions :
disk system 2x500Go in raid1 file system ext4
/boot 3Mo
/var 50Go
/tmp 50go
/home 10Go
/swap 32Go
/ 305Go
data disks 21x1.2To in raid5 (1 disk in rescue) file system xfs
/OMERO
OMERO_TEMPDIR = /tmp
OMERO.data.dir = /OMERO
OMERO_HOME = /opt/OMERO.server

I have two omero conf in /etc/nginx/conf.d to handle two network interfaces. On one ports 4063, 4064 and 443 are open (plus some others to administrate the server). This network interface is dedicated to image transferts from microscope stations and image analyzing stations same VLAN. On this other network interface only 443 is open, its dedicated to web image visualization reachable from all teams. I have enabled only port 443 for these 2 virtual servers because when I tried to listen on ports 80 and 443 only 443 works ?? Anyway https was "strongly recommended" by our IT department....
If you want go further you can read the excellent documentation from BIU http://wiki.helsinki.fi/display/biu/OME ... nistrators

Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: omero web start but

Postby atarkowska » Fri Aug 29, 2014 9:36 am

Hi Philippe,

In order to have OMERO.web accessible on port 80 and 443 (support http and https) is to use the following:
Code: Select all
server {
    listen         80 default;
    server_name    your.domain;
    rewrite        ^ https://$server_name$request_uri? permanent;
}

server {

    listen       443 default ssl;

    ssl on;
    ssl_certificate /path_to/ssl/bundle.crt;
    ssl_certificate_key /path_to/your_domain.key;

    server_name  your.domain;
    ...


Please also note that you shouldn't catch HTTP 404 and HTTP 500 errors.
Code: Select all
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

OMERO.web has its own handler for that. Your users lose the opportunity to submit feedback to us if anything goes wrong.

Your config should look like:
Code: Select all
    error_page 502 503 504 /500.html;

    location ~* ^/(50*\.html)$ {
         root /usr/share/nginx/html;
    }


I hope that helps.

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: omero web start but

Postby phm » Fri Aug 29, 2014 11:58 am

atarkowska wrote:Hi Philippe,

Please also note that you shouldn't catch HTTP 404 and HTTP 500 errors.
Code: Select all
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

OMERO.web has its own handler for that. Your users lose the opportunity to submit feedback to us if anything goes wrong.

Your config should look like:
Code: Select all
    error_page 502 503 504 /500.html;

    location ~* ^/(50*\.html)$ {
         root /usr/share/nginx/html;
    }


I hope that helps.

Ola

Hi atarkowska,

Thanks for the infos, it's documented in Helsinki documentation page

Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Previous

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest