此问题我已解决,正确代码如下

此问题我已解决,正确代码如下:
apache httd.conf末尾:
NameVirtualHost *:80
<VirtualHost *:80>   
ServerAdmin 邮件地址   
DocumentRoot "Apache根目录\htdocs"   
ServerName 计算机名   
DirectoryIndex index.jsp index.htm
</VirtualHost>
# 加载 mod_jk module
LoadModule jk_module "tomcat_modules/mod_jk.dll"
<IfModule mod_jk.c>             
# workers.properties的地址             
JkWorkersFile "Tomcat根目录\conf\workers.properties"                           
# 日志文件             
JkLogFile     "Tomcat根目录\logs\mod_jk.log"                           
# Set the jk log level [debug/error/info]             
JkLogLevel    info                           
# Select the timestamp log format             
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "                           
# Send *.do,*.jsp,*.xls files to worker named ajp13             
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13

</IfModule>

tomcat 文件server.xml与文件workers.properties相应修改

猜你喜欢

转载自arpenker.iteye.com/blog/1072311