|
求整合apache和tomcat的建议
我根据网上的教程做apache和tomcat的整合。但没有成功
软件:
apache 2.2.13 slackware打包
jk 1.2.28 source
Apache Tomcat Version 6.0.16
配置:
#*******************************************************
# httpd.conf
#-------------------------------------------------------------------------------
LoadModule jk_module lib/httpd/modules/mod_jk.so
JkWorkersFile /etc/httpd/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
###### Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
###### JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
###### JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# Sample JkMounts. Replace these with the paths you would
# like to mount from your JSP server.
JkMount /*.jsp ajp13w
JkMount /*/*.jsp ajp13w
JkMount /servlet/* ajp13w
JkMount /examples/* ajp13w
JkMount /*.do ajp13w
JkMount /jsp/jsp2/el/basic-arithmetic.jsp ajp13w
JkMount /jkstatus jkstatus
# You can use external file for mount points.
# It will be checked for updates each 60 seconds.
# The format of the file is: /url=worker
# /examples/*=loadbalancer
#JkMountFile conf/uriworkermap.properties
NameVirtualHost *
<Directory "/home/suk/tools/tomcat/webapps/examples">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Options +Indexes
DirectoryIndex index.html index.htm index.jsp
</Directory>
<VirtualHost *>
DocumentRoot /home/suk/tools/tomcat/webapps/examples
ServerName www.asu.net
# ServerAlias asu.net *.asu.net
# ErrorLog /var/log/httpd/gongsoft.com/error_log
# TransferLog /var/log/httpd/gongsoft.com/access_log
</VirtualHost>
<VirtualHost *>
DocumentRoot /srv/httpd/htdocs
ServerName test.asu.net
</VirtualHost>
#*******************************************************
# httpd.conf
#-------------------------------------------------------------------------------
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=/home/suk/tools/tomcat
#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/lib/java
worker.list=ajp13w,wlb,jkstatus
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
#
# Defining a load balancer
#
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
#
# Define status worker
#
worker.jkstatus.type=status
问题:
apache似乎没有把jsp的请求转发给tomcat,直接打开了
jsp文件。
请求:
曾经成功配置过的兄弟,能否把你们的方案和使用程序的版本
提供给我参考。
感激不尽。 |
|