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>

你可能感兴趣的:(apache)