我有Windows 10 64位,WampServer版本3.0.6 64位,Apache/2.4.23(Win64),PHP/5.6.25。启用本地网络访问WAMP服务器上的网站
我今天下载了一个新版本,所以它是最新版本。
我想让我的网站在本地网络上可用。
我为我的网站创建了一个虚拟主机,我可以在我的电脑上正确访问我的网站(服务器也位于此处)。 我已经尝试了所有的解决方案在下面,但没有他们的工作
这是我在httpd.conf
Require all granted
Order Allow,Deny
Allow from all
</Directory>
,这里是我的httpd-vhosts.conf
<VirtualHost *:80>
ServerName testsite
DocumentRoot "c:/wamp64/www/simple-php-website-master"
<Directory "c:/wamp64/www/simple-php-website-master/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
我已经把我的服务器在线通过启用选项Right click Wampmanager -> WAMPSetting -> Menu Item: Online/Offline
防病毒和Windows防火墙都关闭。我以管理员身份运行它。重新安装也不起作用。
我使用的计算机的IP地址来访问网站,我已经尝试了所有下面的格式,但没有一次成功
- 192.168.0.36/testsite/index.php
- 192.168.0.36/testsite/
- 192.168.0.36/
已经看着下面的方法解决。
我使用this simple site来测试。它没有任何数据库或任何东西。
我得到以下错误,当我尝试从手机或任何其他PC
Forbidden
You don't have permission to access /testsite on this server.
Apache/2.4.23 (Win64) PHP/5.6.25 Server at 192.168.0.36 Port 80