mod_jk 帮助 ubuntu 服务器 9.04 上的 apache2 tomcat6 和railo3

发布于 2024-08-15 16:27:28 字数 313 浏览 3 评论 0原文

我正在尝试在tomcat6上设置coldfusion服务器railo并使用apache2通过mod_jk连接到tomcat。 我已经完成了所有设置,除了我希望能够让我的railo webapp 使用 /var/www (我的默认apache 目录)作为其主目录,因为并非每个文件都需要由railo 处理。解决这个问题的最佳方法是什么?

[编辑] 让我更清楚为什么我希望能够使用这种方法。我计划在 apache 中拥有多个虚拟主机,理想情况下它们的所有 Coldfusion 页面都由 Railo 提供服务,因为几个子域很少使用(管理等),因此为它们提供单独的 Railo 应用程序似乎是一种浪费

I am trying to setup the coldfusion server railo on tomcat6 and using apache2 to connect to tomcat via mod_jk.
I've gotten everything setup except that i would like to be able to have my railo webapp use the /var/www (my default apache directory) as its home directory since not every file need to be processed by railo. What is the best way to go about this?

[EDIT]
Let me be more clear why i want to be able to use this kind of method. Im planning on having multiple virtual hosts in apache that would all ideally have all of their coldfusion pages served by railo since several of the subdomains would be rarely used (admin, etc) so it seems a waste to have a separate railo app for them

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

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

发布评论

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

评论(1

孤檠 2024-08-22 16:27:29

想通了。使用上下文标签将 docBase 设置为您的目录

...
<Host ...>
  <Context path="" docBase="/var/www" />
</Host>

Figured it out. Using the context tag to set the docBase to your directory

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