大家好!最近我在Win2000环境下尝试apache-2.0.55和tomcat-5.5集成的过程中,安装好后,访问http://localhost/index.jsp,却无法打开Tomcat的默认主页,而单独访问http://localhost或http://localhost:8080却可以访问apache 和tomcat的默认主页。
我用的插件为:mod_jk_2.0.46.dll,
workers.properties文件内容如下:
workers.tomcat_home=C:\Tomcat 5.5
#让mod_jk模块知道Tomcat
workers.java_home=C:\Program Files\Java\jdk1.5.0_09
#让mod_jk模块知道j2sdk
ps=\
#指定文件路径分割符
worker.list=worker1
worker.worker1.port=8009
#工作端口,若没占用则不用修改
worker.worker1.host=localhost
#Tomcat服务器的地址
worker.worker1.type=ajp13
#类型
worker.worker1.lbfactor=1
#负载平衡因数
httpd.conf文档中加入的内容:
# Using mod_jk2.dll to redirect dynamic calls to Tomcat
LoadModule jk_module modules\mod_jk_2.0.46.dll
JkWorkersFile "conf\workers.properties"
JkLogFile "logs\mod_jk2.log"
JkLogLevel debug
JkMount /*.jsp loadbalancer
JkMount /helloapp/* loadbalancer
以下为log文档的出错记录:[Wed Jun 06 16:15:55 2007] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 06 16:15:55 2007] [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp'
[Wed Jun 06 16:15:55 2007] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Wed Jun 06 16:15:55 2007] [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=5600128 worker=worker1
[Wed Jun 06 16:15:55 2007] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Wed Jun 06 16:15:55 2007] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp'
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Wed Jun 06 16:15:56 2007] [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=5616664 worker=worker1
[Wed Jun 06 16:15:56 2007] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Wed Jun 06 16:15:56 2007] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp'
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Wed Jun 06 16:15:56 2007] [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=5600128 worker=worker1
[Wed Jun 06 16:15:56 2007] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Wed Jun 06 16:15:56 2007] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp'
[Wed Jun 06 16:15:56 2007] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Wed Jun 06 16:15:56 2007] [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=5616664 worker=worker1
[Wed Jun 06 16:15:56 2007] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Wed Jun 06 16:15:56 2007] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
操作系统 为 WINDOWS 2000
分享到:
相关推荐
在Windows环境下,可以使用提供的apache_2.0.55-win32-x86-no_ssl.msi进行安装。在安装过程中,确保选择合适的安装路径,并记住Apache的服务名和监听端口。 2. **安装mod_jk**:将mod_jk-apache-2.0.55.so模块添加...
Apache+Tomcat整合做负载分流用到的Apache文件。鄙视之前放假资源的那位仁兄,花了一下午总算搜到了,与大家分享下。
这个"apache_2.0.55-win32-x86-no_ssl.rar"压缩包包含的是Apache服务器的一个特定版本——2.0.55,针对Windows 32位操作系统,并且不包含SSL支持。下面我们将详细探讨Apache HTTP Server的基础知识、这个版本的特点...
apache_2.0.55-win32-x86-no_ssl.msi
As a project of the Apache Software Foundation, the developers aim to collaboratively develop and maintain a robust, commercial-grade, standards-based server with freely available source code.
由于本人配置php时找这些花了很多时间,在这为大家提供apache
- 错误处理:在编译或安装过程中可能会遇到错误,仔细阅读错误信息,根据提示解决问题。 - 模块管理:了解如何通过修改`httpd.conf`中的`LoadModule`指令来启用或禁用模块。 - 虚拟主机:如果你的服务器需要托管多个...
tomcat集群配置所需要的mod_jk-apache-2.0.55.so
资源分类:Python库 所属语言:Python 资源全名:cdk_lambda_layer_wget-2.0.55-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
在Windows环境下,使用Apache 2.0.55和Tomcat 5.0构建一个负载均衡的Web服务器架构是提高应用程序可用性和性能的有效方法。以下是详细配置步骤: 1. **安装JDK**: 首先,你需要安装JDK 1.4.2_04。确保设置好环境...
这个压缩包包含了Apache 2.2.8和Tomcat 6.0.16这两个特定版本,以及JK模块(即mod_jk)的2.0.55版,它们是Apache与Tomcat间通信的关键组件。JK模块是Apache的负载均衡和反向代理模块,使得Apache能够处理静态内容,...
apache+tomcat集群的负载均衡和失败托管所需软件 包括 apache_2.0.55-win32-x86-no_ssl.msi apache-tomcat-7.0.40-windows-x86.zip mod_jk-apache-2.0.55.so
总的来说,Apache 2.0.55 for Windows为开发者和管理员提供了一个强大且灵活的Web服务器平台,支持多种功能和扩展,能够满足各种Web应用的需求。尽管现在已经有更新的版本,但2.0.55仍然是一份宝贵的资源,尤其对于...
### 结合Apache和Tomcat实现集群与负载均衡 #### 一、引言 在现代Web应用开发中,为了提高服务的稳定性和响应速度,通常会采用集群和负载均衡技术。本文将详细介绍如何通过Apache和Tomcat这两款强大的开源工具来...