win10配置wampServer局域网访问站点

本机地址:192.168.1.151
假设使用8080端口

网站访问地址为:http://192.168.1.151:8080

wampServer配置

apache的httpd.conf中添加

Listen 0.0.0.0:8080
Listen [::0]:8080

httpd-vhosts.conf
Require local 改为 Require all granted


    ServerName frog.io
    DocumentRoot "g:/frog/public"
    
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    

win10防火墙设置

打开控制面板.png

image.png

完成!

你可能感兴趣的:(wampserver,windows10)