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

来源:互联网 发布:服务器域名是后缀吗 编辑:程序博客网 时间:2024/06/03 18:34

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>,打开防火墙就可以通过局域网进行访问了!

0 0
原创粉丝点击