Project

General

Profile

Actions

Task #8674

closed

Tuna Atlas GeoServer - OpenLayers preview doesn't work under https

Added by Emmanuel Blondel about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
_InfraScience Systems Engineer
Category:
-
Target version:
Start date:
May 17, 2017
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Production

Description

Hello,while testing WMS layers for the Tuna Atlas, we realized that the OpenLayers layer preview (usually used to check layers by Geoserver data manager) was not working. Looking carefully, it appears that the web-app resources (js, css) are not loaded because served as http (while the geoserver is running as https), and then blocked by browsers.

Could you have a look to this? If there is a solution, either:

• to make it work under https (with resources loaded from https)
• or eventually if it is possible to run also Geoserver as http (at least for its management through GUI) which would solve the issue. Today is not possible because url is rewriten from http to https.

https://geoserver-tunaatlas.d4science.org/geoserver/tunaatlas/wms?service=WMS&version=1.1.0&request=GetMap&layers=tunaatlas:atl_catch_tunaatlasird_5deg_1m_1950_01_01_2016_01_01_l1&styles=&bbox=-180.0,-90.0,180.0,90.0&width=768&height=384&srs=EPSG:4326&format=application/openlayers

Thanks in advance!

Extract from the chrom dev tools:

Mixed Content: The page at 'https://geoserver-tunaatlas.d4science.org/geoserver/tunaatlas/wms?service=W…80.0,90.0&width=768&height=384&srs=EPSG:4326&format=application/openlayers' was loaded over HTTPS, but requested an insecure stylesheet 'http://geoserver-tunaatlas.d4science.org/geoserver/openlayers3/ol.css'. This request has been blocked; the content must be served over HTTPS.
wms?service=WMS&version=1.1.0&request=GetMap&layers=tunaatlas:atl_catch_tunaatlasird_5deg_1m_1950_0…:1

Mixed Content: The page at 'https://geoserver-tunaatlas.d4science.org/geoserver/tunaatlas/wms?service=W…80.0,90.0&width=768&height=384&srs=EPSG:4326&format=application/openlayers' was loaded over HTTPS, but requested an insecure script 'http://geoserver-tunaatlas.d4science.org/geoserver/openlayers3/ol.js'. This request has been blocked; the content must be served over HTTPS.

Actions #2

Updated by Andrea Dell'Amico about 8 years ago

  • Assignee changed from Andrea Dell'Amico to _InfraScience Systems Engineer
Actions #3

Updated by Andrea Dell'Amico about 8 years ago

@tommaso.piccioli@isti.cnr.it if there is no geoserver configuration to force it using https internally, it's possible to set the variable http_redirect_to_https: False in group_vars/geoserver_prod_tunaatlas/geoserver_prod_tunaatlas.yml and run the playbook to reconfigure the nginx virtualhost.

Actions #4

Updated by Pasquale Pagano about 8 years ago

  • Tracker changed from Support to Task
  • Priority changed from High to Urgent

please @tommaso.piccioli@isti.cnr.it reply to this request.

Actions #5

Updated by Tommaso Piccioli about 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

Now the proxy on geoserver-tunaatlas.d4science.org works on port 80 (http)
could you plese test it again?

Actions #6

Updated by Emmanuel Blondel about 8 years ago

Thanks, Geoserver layer preview now works well (using http). I believe we can close this ticket, but note you may want to do the same on other Geoserver instances for which https is enabled, otherwise the OpenLayers layer preview will be never available.

Actions #7

Updated by Tommaso Piccioli about 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)