Wamp- 尝试从 android 手机访问 "localhost"

Wamp- trying to access "localhost" from android mobile

我正在尝试从我的移动设备访问本地主机,我正在做的是:

Wi-Fi is enabled

在移动浏览器中写入我的 "IPv4 Address"(chrome) 并收到此错误:

Forbidden You don't have the premission to access / on this serve

-Apache/2.4.9 (Win32) openSSL/1.0.1g.....


<Directory "c:/wamp/apps/phpmyadmin4.1.14/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all </Directory>


这是 phpmyadmin.conf 文件(还有其他部分,例如 IfDefine !APACHE24 可能也需要更改?)

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/"

# to give access to phpmyadmin from outside 
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#

<Directory "c:/wamp/apps/phpmyadmin4.1.14/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
  <IfDefine APACHE24>
    Require local
  </IfDefine>
  <IfDefine !APACHE24>
    Order Deny,Allow
   Require all granted
    </IfDefine>
    php_admin_value upload_max_filesize 128M
    php_admin_value post_max_size 128M
    php_admin_value max_execution_time 360
    php_admin_value max_input_time 360
  </Directory>

对于新的 WAMP 用户来说最琐碎的事情,让我用图像来回答,红色矩形定义服务器可见性。

Offline - local
Online  - LAN

如果您使用其他方法来控制服务器访问并且出于其他原因不需要它们,请将其删除。 WAMP完全可以靠Online/Offline转