Sha*_*din 5 apache ssl https tomcat geoserver
我在 localhost:80 上使用 apache Web 服务器,并在 localhost:8080 上使用 Tomcat 提供的 Geoserver
我最近在 apache 上安装了 SSL 证书,它工作正常,除了我收到消息说我有不安全的内容,我认为它们是 GeoServer 层。所以现在我正在尝试为 GeoServer 启用 SSL 并拥有 Openlayers 内容,例如 htis https://example.org:8080/geoserver,但仍然不确定最好的方法是什么。
小智 0
我的建议:在 Apache 中添加一个(反向)代理并配置仅连接到代理 GeoServer 的 Apache 的 Web 应用程序。
ProxyPass "/geoserver" "http://localhost:8080/geoserver"
ProxyPassReverse "/geoserver" "http://localhost:8080/geoserver"
Run Code Online (Sandbox Code Playgroud)
这样,您只需要在防火墙中允许 HTTPS,除非您在防火墙上启用端口 8080,否则外部的任何人都没有机会访问 GeoServers Web 界面。另请参阅https://gis.stackexchange.com/q/4323/109339了解更多详细信息。
请注意,您应该通过 Apache 将 GeoServer 的https://docs.geoserver.org/stable/en/user/configuration/globalsettings.html#proxy-base-url设置为公共可访问的 URL,例如https:// your-apache.com/geoserver - 否则,从 GeoServer 生成的绝对 URL(例如 GetCapability)以http://localhost:8080/geoserver开头(不再可达)。
如果您尚未使用 Apache,我会推荐 nginx。
| 归档时间: |
|
| 查看次数: |
4530 次 |
| 最近记录: |