apache整合tomcat后 jsp页面全部是源码不能正常显示 5
tomcat单独运行是好的,因为是新手,整合后apache访问127.0.0.1,显示的全部是jsp源码。平台windows732位,tomcat7,apache2.2....
tomcat单独运行是好的,因为是新手,整合后apache访问127.0.0.1,显示的全部是jsp源码。平台windows7 32位,tomcat7,apache 2.2.25。
httpd.conf配置
[code=text]
#LoadModule jk_module F:\Apache2.2\modules\mod_jk.so
LoadModule jk_module modules/mod_jk.so
Include "F:\Apache2.2\conf\mod_jk.conf"
[/code] 其他部分未作修改
workers.properties文件
#定义 a worker named worker1 and of type ajp13
worker.list=worker1,worker2
# Set properties for worker1
worker.worker1.type=ajp13
worker.worker1.host=127.0.0.1
worker.worker1.port=8009
worker.worker1.lbfactor=50
# Set properties for worker2
worker.worker2.type=ajp13
worker.worker2.host=127.0.0.1
worker.worker2.port=8009
worker.worker2.lbfactor=50
mod_jk.conf文件
LoadModule jk_module modules/mod_jk.so
# show the position of workers.properties work file of mod_jk moduler
JkWorkersFile conf/workers.properties
# where to put jk logs
JkLogFile logs/mod_jk.log
#Set the jk log level[debug/error/info]
JkLogLevel info
#Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# show the request be done by tomcat
JkMount /*.jsp worker1
JkMount /servlet/* worker1
JkMount /* worker1
JkMount /*.do worker1
出现什么问题啊,感觉整合后tomcat没起作用啊 展开
httpd.conf配置
[code=text]
#LoadModule jk_module F:\Apache2.2\modules\mod_jk.so
LoadModule jk_module modules/mod_jk.so
Include "F:\Apache2.2\conf\mod_jk.conf"
[/code] 其他部分未作修改
workers.properties文件
#定义 a worker named worker1 and of type ajp13
worker.list=worker1,worker2
# Set properties for worker1
worker.worker1.type=ajp13
worker.worker1.host=127.0.0.1
worker.worker1.port=8009
worker.worker1.lbfactor=50
# Set properties for worker2
worker.worker2.type=ajp13
worker.worker2.host=127.0.0.1
worker.worker2.port=8009
worker.worker2.lbfactor=50
mod_jk.conf文件
LoadModule jk_module modules/mod_jk.so
# show the position of workers.properties work file of mod_jk moduler
JkWorkersFile conf/workers.properties
# where to put jk logs
JkLogFile logs/mod_jk.log
#Set the jk log level[debug/error/info]
JkLogLevel info
#Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# show the request be done by tomcat
JkMount /*.jsp worker1
JkMount /servlet/* worker1
JkMount /* worker1
JkMount /*.do worker1
出现什么问题啊,感觉整合后tomcat没起作用啊 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询