apache -- xampp配置虚拟主机

<VirtualHost *:80>
ServerName www.myblog.com
DocumentRoot "F:/Code/myblog"
<Directory "F:/Code/myblog">
Options Indexes FollowSymLinks Includes ExecCGI
Allow from all
AllowOverride all
Require all granted
</Directory>
</VirtualHost>

或者

<VirtualHost *:80>
ServerName www.myblog.com
DocumentRoot "F:/Code/myblog"
</VirtualHost>
<Directory "F:/Code/myblog"> 
Options Indexes FollowSymLinks Includes ExecCGI
Allow from all
AllowOverride all
Require all granted
</Directory>

原文地址:https://www.cnblogs.com/hf8051/p/4483298.html