用手机或外部设备在同一局域网下访问虚拟主机wampsever的方法版本号是2.4.9

 

1,首先在虚拟服务器电脑上可以打开http://localhost/

2,在外部设备访问时报错为:You don't have permission to access / in on this server

解决方法:

  1,在WampServer安装目录下bin\apache\apache2.4.9\conf打开httpd.conf

  2,在httpd.conf中找到(大概240行):

      <Directory />
        AllowOverride none
        Require all denied 
      </Directory>

    将他修改如下:    

      <Directory />
        AllowOverride none
        #Require all denied
        Require all granted
      </Directory>

  3,同样httpd.conf中找到(大概282行):      

      Require local

 

    修改如下

      Require local
      Require all granted

 

至此,在手机浏览器地址栏http://***.***.***.**输入你打开此虚拟服务器的IP地址----------------OK!    

posted @ 2016-10-08 17:20  風在哭  阅读(828)  评论(0编辑  收藏  举报