windows环境下IP多访问

1、E:\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhosts.conf

添加:

<VirtualHost *:80>
ServerName shop.com
DocumentRoot E:/wamp64/www/person_items/shop/
<Directory "E:/wamp64/www/person_items/shop/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

2、C:\Windows\System32\drivers\etc\hosts

127.0.0.1 shop.com
127.0.0.1 car.com

3、如果缺少出现什么文件,可能的解决方法:删除所有生成的文件,然后重新访问生成

posted on 2017-05-02 14:34  风生水生  阅读(131)  评论(0编辑  收藏  举报

导航