Apache 2.0.61
Tomcat 5.5.25
tomcat-connectors-1.2.25
整合好。设置了虚拟主机。再虚拟主机里JSP探针可以运行!但是不能运行除JSP探针以外不了JSP程序 但是我再8080端口就可以运行JSP程序
apache虚拟主机配置如下:
LoadModule jk_module modules/mod_jk.so
Include conf/mod_jk.conf
NamevirtualHost 121.10.118.29
<VirtualHost 121.10.118.29:80>
ServerAdmin
super@haojc.net
DocumentRoot /usr/local/tomcat/webapps/jive
ServerName jsp.test.com
DirectoryIndex index.html index.htm index.jsp
ErrorLog /usr/apache/logs/jive_error_log
CustomLog /usr/apache/logs/jive_access_log common
</VirtualHost>
<VirtualHost 121.10.118.29:80>
ServerAdmin
super@haojc.net
DocumentRoot /usr/apache/htdocs/php
ServerName php.test.com
DirectoryIndex index.html index.htm index.php
ErrorLog /usr/apache/logs/php_error_log
tomcat里的虚拟主机如下:server.xml
<Host name="jsp.test.com" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/usr/local/tomcat/webapps/jive" debug="0" reloadable="ture"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="jive_com_log."
suffix=".txt"
timestamp="true"/>
</Host>
mod_jk文件如下:
JkWorkersFile conf/workers.properties
JkLogFile /usr/apache/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /*/servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /*.gif ajp13
JkMount /*.jpg ajp13
workers.properties文件是复制tomcat-connectors-1.2.25里的!
请大侠们帮忙!谢谢!@