tomcat - Railo 和 Tomcat - 根目录在哪里

标签 tomcat railo turnkeylinux.org

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

最佳答案

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

请检查您需要的 ColdFuion 版本。

编辑:

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

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.

关于tomcat - Railo 和 Tomcat - 根目录在哪里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8569712/

相关文章:

tomcat - 使用 Solr 时在 Tomcat 中“未创建核心”

Tomcat 配置帮助 : multiple ports not responding

email - 如何在 Railo 服务器中查看未送达的邮件?

java - 铁路/pd4ml : HTML comments inside TDs are printed

ruby-on-rails - Rails Under Construction 页面

ssl - 错误 turnkey linux confconsole dehydrated .well-known/acme-challenge 404 NOT FOUND

Java webapps 安全约束和自定义安全提供程序

security - 如何配置 grails 始终在状态 500 上显示自己的错误页面

java - 如何使用 Tomcat 为 Spring HttpInvoker 请求启用 GZIP 压缩?

java - 使用 Turnkey Linux 在 Windows 环境中托管 Java Web 服务?