配置apache虚拟主机
- apache配置文件httpd.conf添加
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot D:\xampp\htdocs\test
ServerName test.localhost.com
ErrorLog logs/test.localhost.com-error.log
CustomLog logs/test.localhost.com-access.log common
</VirtualHost>
- hosts文件配置中添加
127.0.0.1 test.localhost.com
为了遗忘