gpt4 book ai didi

php - WampServer 3.2.3 无法访问局域网,

转载 作者:行者123 更新时间:2023-12-02 16:26:03 24 4
gpt4 key购买 nike

我无法访问我的 wampserver 机器,这是我的规范 window 10wampserver 3.2.3.3 64 位 Apache 2.4.46

我已经编辑了这个文件“D:\Programs\wamp64\bin\apache\apache2.4.46\conf\extra\httpd-vhosts.conf”,并将“Require local”替换为“Require all granted”,下面是文件中的完整文本

    # Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

我已经重启了所有的服务,但是我无法从连接到同一网络的其他机器访问服务器

有 wampserver 的 ip 机器是“192.168.1.11”,所以在另一台电脑上我在浏览器中输入了 ip“192.168.1.11”并持续加载大约 4 分钟然后停止。

任何人都可以帮忙吗,还有什么我需要做的吗?在此先感谢

最佳答案

我找到了解决方案,Wampserver 不是问题所在。问题是阻止网络访问的 Windows 10 防火墙。所以这些是允许网络访问的步骤:

  1.- In windows 10 go to Menu "Firewall and network Protection"
2.- click on "Allow an app through firewall" option, it opens a window with title "allowed apps"
3.- Click on button "Change Settings" (You have to have administrator rights to do this)
4.- Click on "Allow another app", and browse to your wamp installation and search for httpd.exe of apache, in my case "D:\Programs\wamp64\bin\apache\apache2.4.46\bin\httpd.exe", and click on button add "Add"
5.- and in the columns "Private and Public", check the checkbox for "Public" column and last click on button "Ok" at the bottom of the window
6.- Now you can access to Wampserver Homepage from another machine in the same network

这行得通,但很奇怪,因为我不必对 wamp 早期版本执行这些步骤希望这对遇到同样问题的其他人有所帮助

关于php - WampServer 3.2.3 无法访问局域网,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64504874/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com