• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

win7环境 xampp 配置virtualhost 有关问题

php 搞代码 3年前 (2022-01-24) 12次浏览 已收录 0个评论

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 http://www.ucobub.com

2、配置文件 :E:\xampp\apache\conf\extra\httpd-vhosts

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

ServerAdmin [email protected]
DocumentRoot “E:\xampp\htdocs\ucenter”
ServerName http://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/extr

本文来*源gaodai^.ma#com搞#代!码网
搞gaodaima代码

a/httpd-vhosts.conf

发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址