rest - Coldfusion 11 - 添加 Rest API 服务主机问题
问题描述
我正在尝试在 Coldfusion 11 中设置我的第一个 Rest API。当我排除主机时,我已经通过 CFAdmin 成功注册了该服务。但是当我尝试输入主机时,例如 kobra.xxxxxxx.com,我收到以下错误:
注册 REST 服务时出错。请确保您输入了正确的映射和路径。
此版本的 ColdFusion 服务器不提供对 RESTful Web 服务的多主机支持。
我怎么知道要使用什么主机?我在哪里可以查到?我们正在运行 Apache 作为 Web 服务器。
解决方案
So I found my servername, but it did not work anyway, until I found this solution, where they suggested to add this row in my virtual host in apache:
JKMountFile "/path/to/ColdFusion11/config/wsconfig/1/uriworkermap.properties"
And edit it of course with the correct path
推荐阅读
- kubernetes - 如何从 kubernetes 集群中自动删除 NotReady 节点
- r - 在 R 版本 3.2.1 中安装 dplyr
- flutter - 如何修复颤振中的“admob依赖”错误
- c# - Get 方法在使用 C# 的 Restsharp 中不起作用
- sql - 我想对时间求和,然后使用 sql 乘以薪水
- c# - 如何使用反射获取参数字段的属性
- tizen - 在哪里学习 Tizen 原生可穿戴基础知识
- javascript - 当我运行此代码时,我得到错误 admin is not defined
- mysql - AWS RDS MySQL 数据库用户名和密码足以保证商业安全
- angular - 如何在创建 Angular 6 项目期间跳过初始化 Git 存储库