小编典典

阻止mod_jk显示/附加index.cfm?&_ modcfml在页面加载时重定向

tomcat

我已经在apache2中设置了一个虚拟主机,以将cf站点代理到lucee / tomcat,并使用mode_jk作为代理。

一切正常,除了在服务器重新启动apache或lucee后第一次打开我的网站,或者mod_jk有点重定向到index.cfm并附&_modcfmlredirected加到url之外。

所以,当我打开网址cf.test,我得到cf.test/index.cfm&_modcfmlredirected

我不希望发生这种情况,任何人都可以解释为什么发生这种情况以及如何防止这种情况发生。

顺便说一句:第一次点击后,网页加载正常,没有上述效果。

只有一个index.cfm页面,其中仅包含一行仅回显日期的代码。

虚拟主机配置:

<VirtualHost cf.test:80>
    ServerAdmin webmaster@cf.test
    ServerName cf.test
    ServerAlias www.cf.test
    DocumentRoot /var/www/html/cf.test/public_html
    DirectoryIndex index.cfm
    JkMount /*.cfm ajp13_worker

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

工人属性:

workers.tomcat_home=/opt/tomcat
workers.java_home=/opt/lucee/jre/bin
worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13_worker
  • 操作系统:Ubuntu 18.04-Fresh Install
  • Apache 2.4-默认安装
  • PHP 7.3默认从ondrej ppa安装
  • 来自默认存储库的mod_jp安装libapache2-mod-jk

阅读 276

收藏
2020-06-16

共1个答案

小编典典

您可以通过将“ mod_cfml-valve_v1.1.09.jar”更新为“ mod_cfml-valve_v1.1.10.jar”来解决此问题。

您可以从https://github.com/viviotech/mod_cfml/tree/master/java下载文件

(谢谢Zac Spitzer)

更多信息在这里:https :
//github.com/viviotech/mod_cfml/issues/24

2020-06-16