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

<VirtualHost *:8080>
    ServerName frog.io
    DocumentRoot "g:/frog/public"
    <Directory  "g:/frog/public/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

win10防火墙设置

打开控制面板.png

image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png

完成!

阅读 113

推荐阅读