首页 > 解决方案 > Coldfusion 11 - 添加 Rest API 服务主机问题

问题描述

我正在尝试在 Coldfusion 11 中设置我的第一个 Rest API。当我排除主机时,我已经通过 CFAdmin 成功注册了该服务。但是当我尝试输入主机时,例如 kobra.xxxxxxx.com,我收到以下错误:

注册 REST 服务时出错。请确保您输入了正确的映射和路径。

此版本的 ColdFusion 服务器不提供对 RESTful Web 服务的多主机支持。

我怎么知道要使用什么主机?我在哪里可以查到?我们正在运行 Apache 作为 Web 服务器。

标签: restcoldfusioncoldfusion-11

解决方案


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


推荐阅读