如何使用 https 从 Geoserver 加载地图?

How can you load maps from Geoserver using https?

我如何将 Geoserver 配置为仅从 https 地址加载?我一直在网上梳理,没有找到任何解决方案。

我认为这个问题与地理服务器不完全相关。

您应该配置 java 应用程序服务器(tomcat 或其他)to use https。 Geoserver 将继承 该配置

如果您使用的是tomcat,您可以尝试关注this instructions. Or as stated in the comments, now geoserver doc also includes how to configure tomcat for ssl

如果您使用代理,例如Nginx。确保在 GeoServer 中设置正确的代理 Url。如果设置不正确,GeoServer 将在询问其功能时使用 HTTP 进行广告。您可以在浏览器中打开 WMS_MS_Capabilities.dtd 自行查看。

https://youserver.com/geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd

https://youserver.com/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd