|
|
发表于 2005-5-5 20:29:21
|
显示全部楼层
试试下面的红色字能否解决问题?
Post by sbrd
我的系统是linux as3,web服务器用apache+tomcat+php,但是现在jsp的页面可以正常浏览了,php的站点却是tomcat的欢迎页,请问这个是什么问题?我在哪里修改就好了,在网上找了n多文档都是windows的,要不然就是版本太低的。
我的tomcat是jakarta-tomcat-5.5.8,jdk是jrockit-jdk1.5.0,apache是2.0.53,连接器是mod_jk2,
我的配置文件:
workers2.properties
[logger.apache2]
level=DEBUG
[shm]
file=/usr/local/apache/logs/shm.file
size=1048576
# Example socket channel. override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
worker.list=ajp13
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/status/*]
[uri:/*.jsp]
[uri:/*Servlet]
[uri:/*] 删除这行试试
worker=ajp13:localhost:8009
[uri:/manager/*]
info=Map the manager webapp
worker=ajp13:localhost:8009
看到有篇文章里写到给httpd.conf里加
<Location ~ "/*.jsp|/*/servlet/*">
JkUriSet worker ajp13:localhost:8009
</Location>
但是加上去没有作用呀,
请问哪位大侠可以帮我
配置不同的虚拟主机,可以控制使用php还是jsp。使用了JkUriSet worker ajp13:localhost:8009的设置的虚拟主机就会解析jsp,否则就只有php |
|