Thanks for responding.
Everything is installed on a local linux box running Centos7
- Code: Select all
Linux version 3.10.0-693.5.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Fri Oct 20 20:32:50 UTC 2017
Installation instructions for OMERO server were followed from here:
https://docs.openmicroscopy.org/omero/5 ... ice36.htmlInstallation instructions for OMERO.web were followed from here:
https://docs.openmicroscopy.org/omero/5 ... ce3.6.htmlNote: Option 1 taken and SELinux is disabled
nginx process output:
- Code: Select all
root 8251 0.0 0.0 122896 2300 ? Ss 08:35 0:00 nginx: master process /usr/sbin/nginx
nginx 8252 0.0 0.0 125504 3596 ? S 08:35 0:00 nginx: worker process
nginx 8253 0.0 0.0 125504 3596 ? S 08:35 0:00 nginx: worker process
nginx 8254 0.0 0.0 125504 3596 ? S 08:35 0:00 nginx: worker process
nginx 8255 0.0 0.0 125504 3596 ? S 08:35 0:00 nginx: worker process
nginx 8256 0.0 0.0 125504 3596 ? S 08:35 0:00 nginx: worker process
nginx 8257 0.0 0.0 125504 4036 ? S 08:35 0:00 nginx: worker process
nginx 8258 0.0 0.0 125504 3792 ? S 08:35 0:00 nginx: worker process
nginx 8259 0.0 0.0 125504 4040 ? S 08:35 0:00 nginx: worker process
nginx was installed as part of the OMERO.web install (see above). Version 1.12.2
*****************
I'm new to nginx, coming from Apache so perhaps I am not understanding the directives properly.
Here is what is currently happening:
If I open new browser (clean cache) to:
http://localhost/webgateway/img_detail/252/ I get page not found.
If I go then to
http://localhost I get my default index.html page at /usr/share/nginx/html/
!!! Now if I go to
http://localhost:4080/webgateway/img_detail/252/ AND WAIT for 65 seconds (which just happens to be the keepalive_timeout value in nginx.conf) I can now view
http://localhost/webgateway/img_detail/252/ successfully.
If I now go to
http://localhost I get redirected to localhost/webclient (and am logged in as public-user.)
I've tried removing and changing the keepalive_timeout to 0, 5 but then the non-port url never loads.
There are only 2 conf files loaded into nginx. nginx.conf and omero-web.conf. I included the latter previously, I include the former here.
- Code: Select all
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
server {
listen 80; #; #; # default_server;
listen [::]:80; #; #; # default_server;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
}