虚拟路径的配置

一: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>

posted @ 2017-09-30 12:40  兔子不吃青菜  阅读(175)  评论(0编辑  收藏  举报