相思资源网 Design By www.200059.com
NameVirtualHost *:80 这个一定要
然后把主的ServerAdmin丢最下面
/////////////////////
NameVirtualHost *:80
<VirtualHost *:80>
ServerName abccccc.com
ProxyPass / http://localhost:8088/
ProxyPassReverse / http://localhost:8088/
</VirtualHost>
#设置虚拟主机
<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>
/////////////////////
然后把主的ServerAdmin丢最下面
/////////////////////
NameVirtualHost *:80
<VirtualHost *:80>
ServerName abccccc.com
ProxyPass / http://localhost:8088/
ProxyPassReverse / http://localhost:8088/
</VirtualHost>
#设置虚拟主机
<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>
/////////////////////
标签:
Apache,虚拟转向
相思资源网 Design By www.200059.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
相思资源网 Design By www.200059.com
暂无Apache配置 虚拟转向实例的评论...