当前位置: 技术问答>java相关
关于整合TOMCAT和APACHE!!
来源: 互联网 发布时间:2015-07-14
本文导语: 我在httpd.conf文件中加入以下语句: Include "e:program filesjbuilder5jakarta-tomcat-3.2.1conftomcat.conf" LoadModule jk_module libexec/mod_jk.dll AddModule mod_jk.c JkWorkersFile "c:Tomcat 4confworkers.properties" JkLogFile logs/mod_jk...
我在httpd.conf文件中加入以下语句:
Include "e:program filesjbuilder5jakarta-tomcat-3.2.1conftomcat.conf"
LoadModule jk_module libexec/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile "c:Tomcat 4confworkers.properties"
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
再启动APACHE时错误提示为:
invalid command 'JkLogStampFormat',perhaps mis-spelled or defined by a module not included in the server configuration.
请给个提示吧!
Include "e:program filesjbuilder5jakarta-tomcat-3.2.1conftomcat.conf"
LoadModule jk_module libexec/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile "c:Tomcat 4confworkers.properties"
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
再启动APACHE时错误提示为:
invalid command 'JkLogStampFormat',perhaps mis-spelled or defined by a module not included in the server configuration.
请给个提示吧!
|
删掉这句话,
Include "e:program filesjbuilder5jakarta-tomcat-3.2.1conftomcat.conf"
更新你的这个文件workers.properties
Include "e:program filesjbuilder5jakarta-tomcat-3.2.1conftomcat.conf"
更新你的这个文件workers.properties
|
LoadModule jk_module libexec/mod_jk.dll
AddModule mod_jk.c
将这两句分别放在LoadModule和AddModule语句的最后面
例如:
[...]
#LoadModule unique_id_module libexec/mod_unique_id.so
#LoadModule dav_module libexec/libdav.so
#LoadModule ssl_module libexec/libssl.so
LoadModule jk_module libexec/mod_jk.dll
[...]
ClearModuleList
[...]
#AddModule mod_unique_id.c
#AddModule mod_dav.c
#AddModule mod_ssl.c
AddModule mod_jk.c
[...]
AddModule mod_jk.c
将这两句分别放在LoadModule和AddModule语句的最后面
例如:
[...]
#LoadModule unique_id_module libexec/mod_unique_id.so
#LoadModule dav_module libexec/libdav.so
#LoadModule ssl_module libexec/libssl.so
LoadModule jk_module libexec/mod_jk.dll
[...]
ClearModuleList
[...]
#AddModule mod_unique_id.c
#AddModule mod_dav.c
#AddModule mod_ssl.c
AddModule mod_jk.c
[...]
|
LoadModule jk_module libexec/mod_jk.dll
Include "e:program filesjbuilder5jakarta-tomcat-3.2.1conftomcat.conf"
JkWorkersFile "c:Tomcat 4confworkers.properties"
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
Include "e:program filesjbuilder5jakarta-tomcat-3.2.1conftomcat.conf"
JkWorkersFile "c:Tomcat 4confworkers.properties"
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13