xampp配置虚拟主机 xampp配置

xampp配置虚拟主机

“封面”

首先,xampp要可以基本运行起来

“路径”

以管理员身份运行hosts,新增127.0.0.1 test.com

xampp配置

1
2
3
4
5
6
7
8
9
10
11
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/test" ## 文件根目录
ServerName test.com ## 虚拟域名
<Directory E:/test> ## 文件根目录
Options -Indexes
AllowOverride ALL
DirectoryIndex index.php index.html
Require all granted
</Directory>
</VirtualHost>