ckan - 在具有私有 IP 的云 vm 中安装 CKAN
问题描述
我将 CKAN 安装在具有私有 ip 的云服务器中a.b.c.d
。为了访问该网站,我配置了一个从公共 ipe.f.g.h:10100
到a.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实现“公共地址”,有2个文件需要编辑
- production.ini 中的 ckan.site_url
- .env 中的 CKAN_SITE_URL
推荐阅读
- xcode - Xcode 无法提交文件:“与服务的通信中断”
- java - 通过 swagger UI 请求返回状态 200 和 x-frame-options: DENY of KeycloakWebSecurityConfigurerAdapter 保护 API
- c++ - 迁移 NodeJS CPP 模块 v4l2.cc 以使用 NodeJS v14
- python - 识别和计数不同于背景的物体
- python - 查找熊猫列字符串列表和第二个字符串列表之间的交集
- javascript - 更改设备大小后如何重置 div 上的显示
- flutter - 与 Navigator 一起使用时,StreamProvider 不返回任何数据
- javascript - 如何在使用 jquery 加载时禁用/启用复选框?
- python - 有效计算数组中每一列的元素乘积
- java - 使用 Xerces 2 和 Java 11 的 Maven 项目