apache+tomcat的绑定问题???

lixiaosi 2005-06-14 10:01:47
环境配置:
tomcat:jakarta-tomcat-5.0.28
apache: Apache/2.0.53 HP-UX_Apache-based_Web_Server
jdk: jdk1.4
OS:hp-ux 11

我现在把tomcat和apache分别都配置好了,都可以发布基于本身的网页,
现在我用虚拟机方式把他们都配置在一个目录下,分别为:
apache:/disk1/webapps
tomcat:/disk1/webapps/jsp
workers2.properties :
# Uri mapping
[uri:/jsp/*]
worker=ajp13:localhost:8009


在/disk1/webapps有一个index.html,/disk1/webapps/jsp有一个
index.jsp,所有的一切配置好以后,测试:
http://localhost
http://localhost:8080
都能分别显示,但是我这样:
http://localhost/jsp,就给我报错如下:

Forbidden
You don't have permission to access / on this server.


--------------------------------------------------------------------------------

Apache/2.0.53 HP-UX_Apache-based_Web_Server (Unix) DAV/2 mod_jk2/2.0.3-dev Server at 10.199.104.58 Port 80

开始我认为是权限没有放开,后来我把tomcat,apache,jdk的权限都
设置为777了,还是给我包同样的错,值得一提的是我一旦在
/disk1/webapps/jsp目录下放置一个index.html的页面的话,然后这样:
http://localhost/jsp
就能正常显示index.html的页面,我觉得这不是权限的问题,是不是
mod_jk2.so这个apache和tomcat的连接问题,这个动态库我看网上
都是自己编译生成的,我的这个是本身apache就自带的,因为我编译
了一下,在hp-ux下编译jakarta-tomcat-connectors-jk2-2.0.4-src
这个源码包的话编译不过去。怎样解决http://localhost/jsp,就给报错如上,
大家说说我怎样能解决这个问题?????
急切等待中!!!!!!!!!!!!!!!!!
...全文
146 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
卡纳瓦咯 2005-06-22
  • 打赏
  • 举报
回复
你的apache 配置文件配置让tomcat 解析的文件样式了吗?比如:*.jsp
lixiaosi 2005-06-14
  • 打赏
  • 举报
回复
我现在这样:
http://localhost/jsp/index.jsp,就报如下错:
500
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, www@jv_dev.uniwise-dc-01.uniwise and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

我查看error_log文件,如下:
[Tue Jun 14 13:45:26 2005] [error] shm.init(): No file
[Tue Jun 14 13:45:26 2005] [error] uriEnv.init() map to invalid worker /*.jsp ajp13:localhost:8009
[Tue Jun 14 13:45:26 2005] [error] shm.init(): No file
[Tue Jun 14 13:45:26 2005] [error] uriEnv.init() map to invalid worker /*.jsp ajp13:localhost:8009
[Tue Jun 14 13:52:58 2005] [error] mod_jk.handle() No worker for /ROOT/index.jsp
[Tue Jun 14 14:19:12 2005] [warn] child process 26549 still did not exit, sending a SIGTERM
[Tue Jun 14 14:19:13 2005] [notice] caught SIGTERM, shutting down
[Tue Jun 14 14:20:27 2005] [error] env.createBean2(): Error getting factory for [url] /ROOT/*
[Tue Jun 14 14:20:27 2005] [error] config.update(): Can't create url:/ROOT/*
[Tue Jun 14 14:20:27 2005] [error] shm.init(): No file
[Tue Jun 14 14:20:27 2005] [notice] Apache/2.0.53 HP-UX_Apache-based_Web_Server (Unix) DAV/2 mod_jk2/2.0.3-dev configured -- resuming normal operations
[Tue Jun 14 14:20:27 2005] [error] shm.init(): No file
[Tue Jun 14 14:20:27 2005] [error] uriEnv.init() map to invalid worker /*.jsp ajp13:localhost:8009
[Tue Jun 14 14:20:27 2005] [error] shm.init(): No file
[Tue Jun 14 14:20:27 2005] [error] uriEnv.init() map to invalid worker /*.jsp ajp13:localhost:8009
[Tue Jun 14 14:21:47 2005] [error] mod_jk.handle() No worker for /index.jsp
[Tue Jun 14 14:22:01 2005] [error] mod_jk.handle() No worker for /ROOT/index.jsp
[Tue Jun 14 14:22:20 2005] [error] mod_jk.handle() No worker for /ROOT/index.jsp


这是咋回事????

lixiaosi 2005-06-14
  • 打赏
  • 举报
回复
没人知道吗???

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧