首先,下载安装官方最新版本的xampp,地址: 点击。
安装成功后,运行软件,点击Explorer.
会打开软件的安装目录,选择.\apache\conf\extra\httpd-vhosts.conf ,打开。
添加如下内容:
<VirtualHost 127.0.0.2:80>
ServerAdmin "127.0.0.2:80"
DocumentRoot "E:/wwwroot/xxx"
ServerName 127.0.0.2
安装成功后,运行软件,点击Explorer.
会打开软件的安装目录,选择.\apache\conf\extra\httpd-vhosts.conf ,打开。
添加如下内容:
<VirtualHost 127.0.0.2:80>
ServerAdmin "127.0.0.2:80"
DocumentRoot "E:/wwwroot/xxx"
ServerName 127.0.0.2