【发布时间】:2015-01-22 17:01:04
【问题描述】:
如何将 Geoserver 配置为仅从 https 地址加载?我一直在梳理网络,找不到任何解决方案。
【问题讨论】:
-
有点跑题了,但为了提高安全性,您甚至可以将 geoserver 配置为使用 SSL docs.geoserver.org/latest/en/user/security/tutorials/cert
如何将 Geoserver 配置为仅从 https 地址加载?我一直在梳理网络,找不到任何解决方案。
【问题讨论】:
我认为这个问题与geoserver并不完全相关。
您应该配置您的 java 应用程序服务器(tomcat 或其他)to use https。 Geoserver 将继承该配置
如果您使用的是tomcat,可以尝试关注this instructions。或者如 cmets 中所述,现在 geoserver doc 还包括 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
【讨论】: