一:C:WindowsSystem32driversetchosts
20行 取消注释 添加 127.0.0.1 www.blog.com
二:D:myphp2017Apache24confhttpd.conv
取消#74
248注释
取消#505
三:
在D:myphp2017Apache24confextrahttpd-vhosts最后添加:
<VirtualHost *:80>
DocumentRoot "D:/myphp2017/blog"
ServerName www.blog.com
DirectoryIndex index.php
<Directory "D:/myphp2017/blog/" >
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>