虚拟路径的配置
一:C:\Windows\System32\drivers\etc\hosts
20行 取消注释 添加 www.ff.com
二:D:\myphp2017\Apache24\conf\httpd.conv
取消#74
248注释
取消#505
三:
在D:\myphp2017\Apache24\conf\extra\httpd-vhosts最后添加:
<VirtualHost *:80>
DocumentRoot "D:/myphp2017/pg3903/php"
ServerName www.ff.com
DirectoryIndex index.php
<Directory "D:/myphp2017/pg3903/php" >
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>