首页  >  文章  >  后端开发  >  win7环境 xampp 配置virtualhost 有关问题

win7环境 xampp 配置virtualhost 有关问题

WBOY
WBOY原创
2016-06-13 11:43:15879浏览

win7环境 xampp 配置virtualhost 问题
virtualhost配置文件修改如下: 打开localhost进入的是www.ucobub.com,配置文件如下有什么问题请帮忙指教。
1、配置文件:C:WindowsSystem32driversetchosts
# localhost name resolution is handled within DNS itself.
    127.0.0.1       localhost
# ::1             localhost

127.0.0.1       localhost
127.0.0.1       www.ucobub.com 

2、配置文件 :E:xamppapacheconfextrahttpd-vhosts

# DocumentRoot 是网站文件存放的根目录
# ServerName 是网站域名, 需要跟 DNS 指向的域名一致
#

    ServerAdmin [email protected]
    DocumentRoot "E:xampphtdocsucenter"
    ServerName www.ucobub.com
    ErrorLog "logs/ucobub.com-error.log"
    CustomLog "logs/ucobub.com-access.log" common


3、配置文件:E:xamppapacheconfhttpd.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn