ホームページ  >  記事  >  バックエンド開発  >  win7环境 xampp 配置virtualhost 有关问题

win7环境 xampp 配置virtualhost 有关问题

WBOY
WBOYオリジナル
2016-06-13 11:43:15879ブラウズ

win7环境 xampp 配置virtualhost 问题
virtualhost配置文件修改如下: 打开localhost进入的是www.ucobub.com,配置文件如下有什么问题请帮忙指教。
1、配置文件:C:\Windows\System32\drivers\etc\hosts
# 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:\xampp\apache\conf\extra\httpd-vhosts

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

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


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

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。