Task #8674
closed
Tuna Atlas GeoServer - OpenLayers preview doesn't work under https
100%
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.
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.
Updated by Andrea Dell'Amico about 8 years ago
- Assignee changed from Andrea Dell'Amico to _InfraScience Systems Engineer
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.
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.
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?
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.
Updated by Tommaso Piccioli about 8 years ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100