天成1 发表于 2017-1-28 10:14:43

apahce+tomcat jk配置

JkWorkersFile E:/Apache2/conf/workers.properties
JkLogFile E:/Apache2/logs/mod_jk.log
JkLogLevel info

<VirtualHost apexking.cn:81>
ServerAdmin yourmail@domain.com
DocumentRoot E:/Tomcat5.5/webapps/ROOT
DirectoryIndex index.html index.htm index.jsp
ServerName all-sites
JkMount /*.jsp ajp13
JkMount /*.do ajp13

#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^+\.apexking.cn$
#RewriteRule ^/?$ /%{HTTP_HOST}
#RewriteRule ^/(+)\.apexking\.cn/?$ /$1/shop.do?shopid=1


ErrorLog logs/all-sites-error.log
CustomLog logs/all-sites-access.log common
</VirtualHost>
页: [1]
查看完整版本: apahce+tomcat jk配置