windows - 带有 Apache 2.2 的 Coldfusion 9 不提供网页服务
问题描述
我的环境 Coldfusion 9.0.2(jrun4 上的多实例模式) Apache 2.2 Windows Server 2012
问题:Coldfusion 和 Apache 已启动并运行,但 Apache 未连接到 CF。
到目前为止我做了什么:
- 安装和配置 CF9 和 Apache 2.2
- 运行 Web 配置工具并添加 Apache 作为 CF 应用程序的 Web 服务器。
验证了我的 httpd.conf 文件的内容。他们是:
# JRun Settings LoadModule jrun_module "C:/JRun4/lib/wsconfig/1/mod_jrun22.so" <IfModule mod_jrun22.c> JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ignoresuffixmap false #JRunConfig Serverstore "C:/JRun4/lib/wsconfig/1/jrunserver.store" #JRunConfig Bootstrap 127.0.0.1:51000 JRunConfig Ignoresuffixmap false #JRunConfig Errorurl url <optionally redirect to this URL on errors> #JRunConfig ProxyRetryInterval 600 <number of seconds to wait before trying to reconnect to unreachable clustered server> #JRunConfig ConnectTimeout 15 <number of seconds to wait on a socket connect to a jrun server> #JRunConfig RecvTimeout 300 <number of seconds to wait on a socket receive to a jrun server> #JRunConfig SendTimeout 15 <number of seconds to wait on a socket send to a jrun server> AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf </IfModule> <VirtualHost *:80> DocumentRoot "C:/JRun4/servers/development/cfusion.ear/cfusion.war" ServerName DEVELOPMENT ErrorLog logs/error-development.log <IfModule mod_jrun22.c> JRunConfig Verbose true JRunConfig Serverstore "C:/JRun4/lib/wsconfig/1/jrunserver.store" JRunConfig Bootstrap 127.0.0.1:51000 </IfModule> </VirtualHost>
确保为此实例启用了 JRunProxyService:
... <attribute name="activeHandlerThreads">500</attribute> <attribute name="backlog">500</attribute> <attribute name="deactivated">false</attribute> <attribute name="interface">*</attribute> <attribute name="maxHandlerThreads">1000</attribute> <attribute name="minHandlerThreads">1</attribute> <attribute name="port">51000</attribute> <attribute name="threadWaitTimeout">300</attribute> <attribute name="timeout">300</attribute> ...
完成所有这些步骤后,当我转到http://localhost:51000/cfide/administrator/index.cfm时,页面一直在加载,最终出现超时。
我在这里缺少任何步骤吗?
解决方案
这解决了。我们认为 DocumentRoot 的位置必须在apache2/htpd/..
复制文件并为 中的每个虚拟主机更新 DocumentRoot 后httpd.conf
,一切都按预期开始工作。
感谢社区为查看和回答此问题所投入的时间和精力!
推荐阅读
- c# - select里面的方法调用
- python - 访问字符串中的值
- c# - 如何在 EF Core 中加载具有已定义图形的实体?
- php - 有没有办法在每次调用函数时停止 PHP SOAP 请求?
- java - Apache Kafka Client (Java) : 列出主题并检查主题是否被日志压缩
- php - 我如何总结 span class="total" 中的所有价格?
- angular - ion-img 在离子卡内不起作用 - Ionic 4
- tensorflow-lite - 我在将 .pb 文件转换为 .tflite 文件时遇到问题
- php - Cakephp 3:跨多个应用程序的共享数据库会话
- python - 如何更简洁地编写扁平化嵌套列表的代码