apache+tomcat的绑定问题???
环境配置:
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,就给报错如上,
大家说说我怎样能解决这个问题?????
急切等待中!!!!!!!!!!!!!!!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
up!!
你需要做apache+tomcat的配合工作,web区找找相关贴子
我已经配好了,相关的server.xml,httpd.conf,work2.properties.jk2.xxx
文件我都作了修改了
咋回事呀?????
没人知道吗???
你看看你的nobody用户是否有从根目录到这个文件的read权限。
为何要用nobody用户,如下:
#su - nobody
su: Invalid ID
#
说明这个用户不能用,但是在/etc/passwd文件下有这个用户
我现在这样:
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
这是咋回事????
up!!
up!!!