首页 > Web开发 > 详细

Apache vhost

时间:2016-03-22 10:09:27      阅读:226      评论:0      收藏:0      [点我收藏+]

在conf/extra目录下httpd-vhosts.conf

 1 ##<VirtualHost *:80>
 2     ##ServerAdmin webmaster@dummy-host2.example.com
 3     ##DocumentRoot "/xampp/htdocs/dummy-host2.example.com"
 4     ##ServerName dummy-host2.example.com
 5     ##ErrorLog "logs/dummy-host2.example.com-error.log"
 6     ##CustomLog "logs/dummy-host2.example.com-access.log" common
 7 ##</VirtualHost>
 8 
 9 
10 <VirtualHost *:80>
11     ## mifi 引伴系统yii框架
12     DocumentRoot "D:/phpweb/mifi_yii/backend/web/"
13     ServerName mifi_yii.com
14 </VirtualHost>
15 
16 <VirtualHost *:80>
17     ## mifi 所有项目目录
18     DocumentRoot "D:/phpweb"
19     ServerName localhost
20 </VirtualHost>

 

Apache vhost

原文:http://www.cnblogs.com/shaoing/p/5304771.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!