gpt4 book ai didi

apache - mod_jk 连接器集成

转载 作者:行者123 更新时间:2023-11-28 23:29:08 26 4
gpt4 key购买 nike

CentOS 6.7 版(最终版) \m 上的内核\r

apache-tomcat-7.0.47  
jdk1.7.0_45

tomcat-connectors-1.2.41

日志显示 mod_jk 已初始化:

# cat /var/log/httpd/mod_jk.log
[Wed Oct 07 19:19:31.070 2015] [32013:140147690502112] [info] init_jk::mod_jk.c (3591): mod_jk/1.2.41 initialized
[Wed Oct 07 19:19:31.101 2015] [32014:140147690502112] [info] init_jk::mod_jk.c (3591): mod_jk/1.2.41 initialized

但不转发请求到tomcat。这是我的 mod_jk.conf 文件:

<IfModule !mod_jk.c>
LoadModule jk_module "/usr/lib64/httpd/modules/mod_jk.so"
</IfModule>

#JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/var/log/httpd/mod_jk.log"
JkLogLevel emerg

#NameVirtualHost
<VirtualHost 159.255.145.155:80>
ServerName localhost
JkMount /manager ajp13
JkMount /manager/* ajp13
JkMount /docs ajp13
JkMount /docs/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /host-manager ajp13
JkMount /host-manager/* ajp13
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
</VirtualHost>

这是我的 workers.properties 文件:

workers.tomcat_home=/var/java/apache-tomcat-7.0.47
workers.java_home=/var/java/jdk1.7.0_45
ps=/
worker.list=ajp13
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1

请指教

感谢期待

最佳答案

# vi /var/www/vhosts/system/domainName.com/conf/vhost.conf
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13

Then run:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain domainName.com

关于apache - mod_jk 连接器集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33004631/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com