虚拟目录的配置
一:C:\Windows\System32\drivers\etc\hosts
20行 取消注释 添加 127.0.0.1 www.blog.com
二:D:\myphp2017\Apache24\conf\httpd.conv
取消#74
248注释
取消#505
三:
在D:\myphp2017\Apache24\conf\extra\httpd-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>