Railo、Tomcat IIS7 和默认文档

发布于 2024-07-17 00:17:11 字数 874 浏览 6 评论 0原文

我已经在 Windows 2008(32 位)服务器上使用 Tomcat v6 设置了 Railo v3.1。 一切似乎都工作正常,除了无论我尝试什么,我都无法让它识别我的默认文档(index.cfm)

所以:
http://localhost/index.cfm = 很好
http://localhost = 404.3 错误

如果我查看该错误,似乎 IIS7 正在使用静态文件处理程序来处理file - 据我所知,404 错误并不是指文件本身,而是指用于处理它的 ISAPI 处理程序。 这没有多大意义。

我尝试在 IIS7 中添加单独的处理程序,但没有成功。

我认为这是 IIS7 中的一个问题,因为我发现了一些博客和论坛帖子,这些帖子来自使用不同系统、有类似问题的人。 (Tomcat、jBoss 等)

有人遇到过这个问题或者有解决方法吗?

有关我的设置的详细信息,我严格遵循本指南:
http://www.hockeypfef.net/index.cfm/2009/3/12/Installing-Railo-3-on-Windows-200832bit-with-IIS7-and-Tomcat

I've set up Railo v3.1 using Tomcat v6 - on a Windows 2008 (32bit) server.
Everything seems to work fine, except that no matter what I try, I can't get it to recognise my default document (index.cfm)

So:

http://localhost/index.cfm = fine

http://localhost = 404.3 error

If I look at the error, it seems that IIS7 is using the static file handler to process the file - As far as I can tell, the 404 error isn't referring to the file itself, but to the ISAPI handler used to process it.
Which doesn't make a great deal of sense.

I've tried adding a seperate handler in IIS7, but to no avail.

I think this is an issue in IIS7, as I've found several blogs and forum posts from people with similar problems, using a different system. (Tomcat, jBoss etc.)

Anyone come across this or have a workaround?

For details on my setup, I followed this guide rigidly:
http://www.hockeypfef.net/index.cfm/2009/3/12/Installing-Railo-3-on-Windows-200832bit-with-IIS7-and-Tomcat

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

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

发布评论

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

评论(4

旧时光的容颜 2024-07-24 00:17:11

将 /*=wlb 放入 uriworkermap.properties 文件中解决了该问题。
我安装了 jBoss MSI 安装程序版本,并查看了它生成的属性文件,以找出答案!

答案很简单,但我们就这样吧。

Putting /*=wlb into the uriworkermap.properties file solved the problem.
I installed the jBoss MSI installer version and took a look at the properties files it had generated, to find this out!

Simple answer, but there we go.

慕巷 2024-07-24 00:17:11

之前没有看到这篇文章,但想注意一下
我为 Tomcat/Railo 和 IIS 创建了备用连接器。
您可以使用它来代替 ISAPI 连接器。 配置更简单一些,因为您可以使用 IIS 工具来影响将哪些文件转发到 Tomcat/Railo,也可以选择 IIS 端的默认文档。
该连接器可以从 Riaforge 下载:
http://tomcatiis.riaforge.org
软件包中还包含手动安装说明和自动安装程序。
可以在 Riaforge 网站上留下反馈。

Did not see this post before but wanted to note that
I have created an alternate connector for Tomcat/Railo and IIS.
You can use it instead of the ISAPI connectors. The configuration is a little more straight forward as you can use IIS facilities to influence which files are beeing forwarded to Tomcat/Railo and also can pick the default document on the IIS side as well.
The connector can be downloaded from Riaforge:
http://tomcatiis.riaforge.org
Manual installation instruction and an automated installer is also included in the package.
Feedback can be left on Riaforge site.

过期情话 2024-07-24 00:17:11

我知道您正在使用 tomcat,但是如果您在 IIS 上,它不会自动将所有请求转发到 Railo 服务器,只会将您在工作配置中定义的请求(可能只是 .cfm/.cfc)转发。 这就是为什么 .cfm 显式工作并且没有任何内容发送 404。

在 IIS 管理器中默认本地主机站点的属性下和文档选项卡中,您是否将默认页面设置为 index.cfm?

说明来自微软

[编辑]
您也可以检查您的 uriworkermap.properties
设置 /=wlb 而不是 /.cfm,基本上将所有内容转发到 tomcat。

I know your going through tomcat, but if your on IIS it does not automatically forward all requests to the railo server, only ones you have defined in your worker configuration(maybe just .cfm/.cfc). Which is why .cfm explicit works and nothing sends a 404.

In the IIS manager under the properties for your default localhost site and in the documents tab, did you make the default page index.cfm?

instructions via microsoft

[edit]
Also you might check your uriworkermap.properties
set /=wlb instead of the /.cfm, basically forward anything and everything to tomcat.

浴红衣 2024-07-24 00:17:11

您应该将您的评论标记为答案,以便问题被标记为已回答。

顺便说一句,对于那些有兴趣在 Tomcat 上运行 Railo、CF 或 Open BD 的人,Matt Woodward 将于本周在 上就此发表演讲在线 ColdFusion 聚会,时间为 4 月 16 日星期四下午 6 点。

You ought to mark your comment as the answer, so the question is marked as answered.

BTW, for those interested in running Railo, CF, or Open BD on Tomcat, Matt Woodward will be speaking on that this week at the Online ColdFusion Meetup, in the 6pm slot on Thursday April 16.

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