想你了的他他 发表于 2017-1-3 06:21:13

请教整合apache tomcat 问题!!!

我在本机xp系统整合没有任何问题
httpd.conf增加

LoadModule jk2_module modules/mod_jk2.so

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot N:\\apache-tomcat-6.0\\webapps\\ROOT
    ServerName dummy-host.example.com
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>


#########################


在tomcat\conf下增加文件
jk2.properties

内容如下

handler.list=apr,request,channelJni

# Override the default port for the socketChannel

channelSocket.port=8009

#

# shm.file=${jkHome}/work/jk2.shm

apr.jniModeSo=c:/apache2/modules/mod_jk2.so

# apr.jniModeSo=inprocess

shm.file=c:/Apache2/logs/jk2.shm


####################

apache2\conf目录下增加文件 workers2.properties

内容



file=c:/Apache2/logs/jk2.log

level=INFO

debug=1





file=c:/Apache2/logs/workers2.properties

level=INFO

debug=1





host=127.0.0.1

port=8009





file=c:/Apache2/logs/jk2.shm

size=1048576



# define the worker



channel=channel.socket:127.0.0.1:8009



# ###表示web主目录下的所有请求都给TomCat处理

##表示把所有的.jsp文件交给Tomcat处理





#
#表示把所有的jsp-examples目录的所有请求都交给Tomcat处理,如果在IE地址栏中输入http://127.0.0.4/ jsp-examples那么你看到的将会是http://127.0.0.1:8080/ jsp-examples中的内容。

#

我在xp系统测试成功,

可是在外网server上测试却提示错误 外网系统win2003

在线急等!!!!!!

错误提示如图:
页: [1]
查看完整版本: 请教整合apache tomcat 问题!!!