we’ve installed omero 5.5 on RHEL7 using nginx with seperate omero and omero-web servers.
SSL is enabled, so that the omero web server can be reached both by using http and https.
The question is whether it is possible to redirect http requests automatically to https. Basically, if someone enters http://omero-web.example.com he receives https://omero-web.example.com/webclient/login/?url=%2Fwebclient%2F instead.
A simple redirection like
return 307 https://$server_name$request_uri;
rewrite ^ https://$server_name$request_uri;
doesn’t seem to work as it breaks the API. Ideas?