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>

posted @ 2015-05-06 21:39  goodup  阅读(187)  评论(0编辑  收藏  举报

如有不对之处,欢迎指出,一起成长