#设置虚拟主机
<VirtualHost *:80>
ServerAdmin www.adddd.com
DocumentRoot E:/Tomcat/webapps/ROOT
#您的站点项目所在路径,应与tomcat中的目录设置相同
ServerName www.adddd.com
Alias /p "F:\\uploadFiles"
<Directory "F:\\uploadFiles">
Options -Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /aaaaaa "F:\\aaaaaa"
<Directory "F:\\aaaaaa\abcc">
Options -Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
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 /*.do ajp13
#让Apache支持对.do传送,用以Tomcat解析
</VirtualHost>
本文来自: 脚本之家(www.jb51.net) 详细出处参考:http://www.jb51.net/article/15269.htm