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!