LoadModule jk_module modules/mod_jk-apache-2.2.4.so
#此处mod_jk的文件为你下载的文件
JkWorkersFile "E:/server/Tomcat6/conf/workers.properties"
#指定tomcat监听配置文件地址
JkLogFile "E:/server/Tomcat6/logs/mod_jk2.log"
#指定日志存放位置
JkLogLevel info #设置虚拟主机
<VirtualHost localhost>
ServerAdmin localhost
DocumentRoot e:/server/Tomcat6/webapps/ROOT
#您的站点项目所在路径,应与tomcat中的目录设置相同
ServerName localhost
DirectoryIndex index.html index.htm index.jsp
ErrorLog logs/shsc-error_log.txt
CustomLog logs/shsc-access_log.txt common
JkMount /servlet/* ajp13
#让Apache支持对servlet传送,用以Tomcat解析
JkMount /*.jsp ajp13
#让Apache支持对jsp传送,用以Tomcat解析
JkMount /*.action ajp13
#让Apache支持对.action传送,用以Tomcat解析
ProxyPass /Test http://127.0.0.1:8080/
ProxyPassReverse /Test http://127.0.0.1:8080
<proxy http://127.0.0.1:8080>
AllowOverride None
Order Deny,Allow
Allow from all
</proxy>
</VirtualHost>
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。