我使用Apache / 2.2.14(Worker MPM)+ libapache2-mod-jk 1.2.28-2 + tomcat 6.0.24为我的应用程序在一台机器上一起使用CGI和Java。我遇到了mod_jk的问题(我不确定):
错误
Internal Server Error
[info] "ajp_get_endpoint::jk_ajp_common.c (3001): Unable to get the free endpoint for worker ajp13 from 10 slots"
[error] jk_handler::mod_jk.c (2549): Could not get endpoint for worker=ajp13
当我使用远程代理服务器时,才会发生这种情况。直接连接似乎正在起作用。
jk_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
启用MODS-/ jk.conf
JkWorkersFile /etc/apache2/jk_workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkShmFile /var/log/apache2/jk-runtime-status