windows环境下IP多访问

时间:2022-07-12 21:59:00

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、如果缺少出现什么文件,可能的解决方法:删除所有生成的文件,然后重新访问生成