0
我想在Ubuntu服務器10上配置apache 2.2的Tomcat6。我遵循了很多教程,但我無法使它工作...在Ubuntu 10服務器上配置Tomcat6 + apache2.2的問題
請有人可以幫助我?
下面是一些信息....
的mod_jk.so位於Apache模塊文件夾...
我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
在server.xml中我激活後續行:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
我創建了一個mod_jk.conf
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile /var/lib/tomcat6/conf/workers.properties
JkLogFile /var/lib/tomcat6/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /tomcat ajp13
JkMount /tomcat/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
上的apache.conf我加了如下一行:
Include /var/lib/tomcat6/conf/mod_jk.conf
我的Apache日誌:
[Thu May 05 18:20:53 2011] [warn] No JkShmFile defined in httpd.conf. Using default /var/log/apache2/jk-runtime-status
[Thu May 05 18:20:53 2011] [notice] Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch mod_python/3.3.1 Python/2.6.5 mod_ruby/1.2.6 Ruby/1.8.7(2010-01-10) mod_ssl/2.2.14 OpenSSL/0.9.8k mod_jk/1.2.28 configured -- resuming normal operations
我的tomcat日誌:
May 5, 2011 6:22:26 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 5, 2011 6:22:26 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/97 config=null
我的Apache日誌時我嘗試訪問url/tomcat或url/tomcat/index.html
[Thu May 05 18:23:18 2011] [error] [client 200.153.100.51] File does not exist: /var/www/tomcat
[Thu May 05 18:23:21 2011] [error] [client 200.153.100.51] File does not exist: /var/www/tomcat