本地配置域名:
第一步: 修改 wind32 / host 文件 127.0.0.01 www.mytpshop.com
第二步: 开启httpd.conf文件 Include conf/extra/httpd-vhosts.conf
第三步: 在httpd-vhost.conf文件里 加入
<VirtualHost *:80>
ServerAdmin www.mytpshop.com
DocumentRoot "D:phpStudyWWWFanmili"
ServerName www.mytpshop.com
ServerAlias www.mytpshop.com
ErrorLog "logs/mytpshop-error.log"
CustomLog "logs/mytpshop-access.log" common
</VirtualHost>