English 中文(简体)
mod_jk problems with connectioning apache2 and tomcat6
原标题:mod_jk problems with connecting apache2 and tomcat6

我正试图混淆_,把申请转交我的网络版图。 (我读到的是,这种 mo-proxy_ajp是走的路,但希望首先获得这一数据。) 我是新到的cat和 mo。

我试图访问。 http://www.example.com/test/index.jsp

在我配置了 mo树后,我发现我的ache木有400个错误。 当我直接在目录中测试时,网络应用正在做罚款。 在 mo-jk号记录中,我看到它正在试图绘制A/index。 jsp, but itsail with a 400. 因此,我看到这辆 mo车正在被援引,但有些how眼看不到网吧。

非常感谢任何帮助。

我坐在SuSelav 11上,坐在同一箱子上,跑着一刀子和cat。

My httpd.conf是一个单一语言文件。 在我后面加上:

<IfModule jk_module>
Alias /test/ "/srv/tomcat6/webapps/A"
JkWorkersFile   /usr/local/apache2/conf/workers.properties
JkShmFile       /usr/local/apache2/logs/mod_jk.shm
JkLogFile       /usr/local/apache2/logs/mod_jk.log
JkLogLevel      debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JKMount        /test/ A1
JkMount     /test/* A1
JkOptions       +ForwardSSLCertChain
</IfModule>

我在工人中有以下人员。 财产

#Define 1 real worker using ajp13
worker.list=A
#Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.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

Thanks, - Vas

最佳回答

你的工人被称作A,但你的JkMount地图是A1。 你们应该这样做。

JkMount /test/* A

我使用了 mo-jk和 mod_proxy_ajp。 在重负荷下, mo-jk性能较好,因为 mo-jk的连接更为持久。 环氧的确更容易安装。

EDIT: 工人配置也不正确。 这应当如此,

#Define 1 real worker using ajp13
worker.list=A
#Set properties for worker1 (ajp13)
worker.A.type=ajp13
worker.A.host=localhost
worker.A.port=8009
worker.A.lbfactor=50
worker.A.cachesize=10
worker.A.cache_timeout=600
worker.A.socket_keepalive=1
worker.A.socket_timeout=300
问题回答

您是否装载了该模块?

 LoadModule jk_module [path to it]

如果该指令已经装满或根据我相信汇编而成,该指令将属实。





相关问题
MySQL like query runs extremly slow for 5000 records table

I have this issue on our production server. The application stack is, Java Web App on Tomcat 6.0.18 iBatis data access layer MySQL 5.0 database CentOS The system is deployed on virtual server having ...

Set the path of web app in META-INF/context.xml?

I m tryin to change the path of a deployed war file in Tomcat. Reading the documentation I can t figure out if this is possible without moving the context-file to the /conf directory. Is it possible ...

MySQL Connector/J Problem

So I ve been having issues with the MySQL Connector/J driver not correctly loading in a Java Web Start application that is running on Tomcat 6.0.20. I ve copied the MySQL connector JAR file into the ...

Can t connect to MySQL database from tomcat

Hey, I m getting this error: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. I m just ...

JNDI Names -- Is Prefix "jdbc/" needed?

What s up with JNDI names? I m trying to get a javax.sql.DataSource using the new annotations feature of Java 5. It s not working for me, so I want to ask... I have a in my web.xml, inside of it is ...

热门标签