Railo 和 Tomcat - 根目录在哪里

发布于 2024-12-22 09:58:53 字数 171 浏览 9 评论 0原文

我已经安装了 TurnKey Tomcat 并部署了 Railo WAR。默认 www 目录似乎无法识别 .cfm 文件,但请注意 192.168.91.128/railo 使用 .cfm 文件。 Railo 和 Tomcat root 是否依赖于扩展。我需要在哪里部署 .cfm 文件,或者如何更改 www 以使用 .cfm?

I have installed TurnKey Tomcat and deployed a Railo WAR. The default www directory does not seem to recognize .cfm files but notice that 192.168.91.128/railo is using a .cfm file. Is Railo and Tomcat root dependent on the extension. Where do I need to deploy .cfm files or how can I change the www to work with .cfm?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界如花海般美丽 2024-12-29 09:58:53

默认情况下,Tomcat 不支持 ColdFusion,因为它不是 Java EE 规范的一部分。如果您想在 Tomcat 上部署 cfm 文件,您需要先安装 ColdFusion。我找到了以下链接:

请检查您需要的ColdFuion版本。

编辑:

显然您已经安装了 Railo(ColdFusion 引擎),我的建议是您查看 http 上的文档://www.getrailo.org/。从这个网站我发现了以下内容:

首先要知道 Railo 的架构是
与其他 CFML 引擎不同。在Railo配置中可以是
根据网络上下文级别或全局上下文制作。现在什么是
网络上下文?

什么是网络上下文?
Web 上下文是由应用程序服务器(而不是 Web 服务器)提供的安全区域。 Web 上下文是
由相应配置文件中的条目定义
应用服务器。这些文件因应用程序服务器而异
服务器。例如,在 Resin 中,该文件称为resin.conf 或
resin.xml,而在 Tomcat 中称为 server.xml。请检查
您的应用程序服务器的相应文档以便查看
如何定义这些网络上下文。

您在应用程序服务器中定义新的 Web 上下文的事实是
网络服务器中新网站的任何定义都可以的原因
如果您有的话,仅在网络上下文的基础上进行不同的定义
镜像应用程序服务器中网络服务器的配置
通过使用虚拟主机定义。

Tomcat doesn't support ColdFusion by default since it isn't part of Java EE specification. If you want to deploy cfm files on Tomcat you need install ColdFusion first. I have found the following links:

Please check the version of ColdFuion that you need.

EDIT:

Apparently you have Railo installed (ColdFusion Engine) my suggestion is that you review the documentation at http://www.getrailo.org/. From this site I have found the following:

First is is important to know that the architecture in Railo is
different than in other CFML engines. In Railo configuration can be
made either per web context level or per global context. Now what is a
web context?

What is a web context?
A web context is a secured area provided by the application server (and NOT by the webserver). A web context is
defined by a entry in the corresponding configuration file of
the application server. These files differ from app server to app
server. In Resin for example this file is called resin.conf or
resin.xml, whereas in Tomcat it is called server.xml. Please check the
corresponding documentation of your application server in order to see
how to define these web contexts.

The fact that you define new web contexts in the application server is
the reason why any definition of a new website in the webserver can
only be defined differently on a web context basis if you have
mirrored the configuration of the webserver in the application server
by using virtual host definitions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文