配置本地的虚拟域名

步骤一:E:\xampp\apache\conf\extra

##

    ##ServerAdmin [email protected]

  ##DocumentRoot "E:/xampp/htdocs/"

  ##ServerName www.zyh.com

    ##ErrorLog "logs/dummy-host2.example.com-error.log"

    ##CustomLog "logs/dummy-host2.example.com-access.log" common

##

步骤二:C:\Windows\System32\drivers\etc

127.0.0.1 www.zyh.com

步骤三:在浏览器添加一个书签栏 网址写你自己配的本地域名

你可能感兴趣的:(配置本地的虚拟域名)