在“D:/ apache24 / conf / extra”文件夹的“httpd.conf”文件末尾添加“Include D:/Tomcat_7.0/conf/mod_jk.conf”行
mod_jk.conf
LoadModule jk_module D:/apache24/modules/mod_jk.so
JkWorkersFile D:/Tomcat_7.0/conf/workers.properties
JkLogFile D:/Tomcat_7.0/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /ws ajp13
JkMount /ws/* ajp13
workers.properties
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.lbfactor=50
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300
因此我也在Tomcat7中修改了server.xml
现在,当我在命令提示符下运行以下命令时,我收到语法错误,如下所示:
D:\apache24\bin> httpd -k install
httpd:D:/apache24/conf/extra/httpd.conf的“Include D:/Tomcat_7.0/conf/mod_jk.conf”行语法错误:无法加载D:/apache24/modules/mod_jk.so到服务器:%1不是有效的Win32应用程序。