xampp 配置虚拟主机

xamppapacheconfextrahttpd-vhost.conf 下面直接写

<VirtualHost *:80>
     DocumentRoot "D:xampphtdocswwwchain"
     ServerName chain.com
         <Directory "D:xampphtdocswwwchain">
               Options Indexes FollowSymLinks
              AllowOverride all
              Order Allow,Deny
              Allow from all
        </Directory>
</VirtualHost>

然后再host文件夹下(在C:\usersystem32driversetchost)

写 127.0.0.1 chain.com

原文地址:https://www.cnblogs.com/wangshuazi/p/10437782.html