TransWikia.com

Layer Preview not working over HTTPS

Geographic Information Systems Asked by Jose Hermosilla Rodrigo on February 20, 2021

I’m running Geoserver over HTTPS and when I preview a layer with openlayers3 format the page throws an error.

The error point that some resources

i.e. http://mydomain.com/geoserver/openlayers3/ol.js

are blocked because are requested over HTTP.

enter image description here


I tried to change it manually but I can’t find the file.

Is there some configuration file I need to change so that the page request the content over HTTPS?

One Answer

Setting Proxy Base URL in global settings worked for me.

http://docs.geoserver.org/stable/en/user/configuration/globalsettings.html

In your example, the Proxy Base URL you should enter is:

https://mydomain.com/geoserver/

Correct answer by Ries on February 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP