首页 > 其他 > 详细

apache 配置虚拟主机

时间:2014-02-27 14:07:46      阅读:521      评论:0      收藏:0      [点我收藏+]

1    打开httpd.conf

  找到

  # Virtual hosts

     #Include conf/extra/httpd-vhosts.conf

  修改为(也就是把前面的#去掉)

  # Virtual hosts

     Include conf/extra/httpd-vhosts.conf    

2   打开conf/extra/httpd-vhosts.conf的这个文件

  <VirtualHost *:80>
  ServerName www.dacnnet.com
  DocumentRoot "../htdocs/phpcms"
  </VirtualHost>

  其中 servername 是你的虚拟主机名称  documentroot 是地址

3  打开hosts 文件(C:\Windows\System32\drivers\etc)

  添加    127.0.0.1  www.dacnnet.com

  OK

apache 配置虚拟主机,布布扣,bubuko.com

apache 配置虚拟主机

原文:http://www.cnblogs.com/Hebe0115/p/3569668.html

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