WampServer 3.2.3 无法访问 LAN 网络,

lac*_*per 3 php apache http wampserver

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

我编辑了此文件“D:\Programs\wamp64\bin\apache\apache2.4.46\conf\extra\httpd-vhosts.conf”,并将“需要本地”替换为“需要所有授予”,以下是完整文本在文件中

    # 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>
Run Code Online (Sandbox Code Playgroud)

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

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

有人可以帮忙吗,我还需要做些什么吗?提前致谢

lac*_*per 8

我已经找到了解决方案,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
Run Code Online (Sandbox Code Playgroud)

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