wamp配置多个站点,访问类似127.0.0.2

listen 8081
< VirtualHost *:8081>
ServerAdmin ceshi002.com
DocumentRoot “d:\wamp64\www\wwwroot\frontend\www”
ServerName ceshi002.com
< Directory “D:\wamp64\www\wwwroot\frontend\www”>
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
Require all granted
< /Directory>
ErrorLog “logs/ceshi002.com-error.log”
CustomLog “logs/ceshi002.com-access.log” common
< /VirtualHost>

listen 8081
< VirtualHost :8081>添加listen 8081,在下边修改为< VirtualHost :8081>,打开防火墙就可以通过局域网进行访问了!

你可能感兴趣的:(PHP)