首页 > 解决方案 > 在具有私有 IP 的云 vm 中安装 CKAN

问题描述

我将 CKAN 安装在具有私有 ip 的云服务器中a.b.c.d。为了访问该网站,我配置了一个从公共 ipe.f.g.h:10100a.b.c.d:80. 此外,我按照部署源安装说明使用 Apache 和 Nginx 部署了 CKAN 。

现在我可以使用 访问 CKAN 主页http://e.f.g.h:10100,但是登录过程将重定向到http://e.f.g.h/user/login...由于 url 中缺少端口而无法访问的页面。

production.ini文件中,我已经配置了ckan.site_url = http://e.f.g.h:10100.

我在配置中遗漏了什么(例如,apache、nginx 或 ckan production.ini)?

标签: ckan

解决方案


为了让CKAN实现“公共地址”,有2个文件需要编辑

  1. production.ini 中的 ckan.site_url
  2. .env 中的 CKAN_SITE_URL

推荐阅读