gpt4 book ai didi

WampServer 3 在线禁止

转载 作者:行者123 更新时间:2023-12-03 23:56:42 26 4
gpt4 key购买 nike

当我尝试从另一台设备(与 LAN 连接)访问我的本地网站时,出现禁止错误。

我试图编辑 Apache 的 httpd.conf(正如谷歌告诉我的那样),修复 vcredist 包,完全卸载 wamp 并安装(重新下载最新版本),停用防病毒软件(我正在使用 BitDefender 顺便说一句)。

大约 1 个月前,我使用的是 Windows 7,wamp 运行良好。升级到 Windows 10 后,我清理了我的电脑并安装了 wamp。起初,我不需要它的在线模式,但现在,我需要它。所以,我对所有新想法持开放态度。

笔记

- 我可以用我的电脑访问本地主机(使用 LAN IP、路由器 IP 和 http://localhost)

-我使用的是 Windows 10 Professional x64

- 我在谷歌上查看了所有类似的问题和相关页面,但没有一个对我有用

大约 3 周前,我开始使用新路由器。它会导致这个问题吗?或者我无法正确安装驱动程序?

最佳答案

不要编辑 http.config 而是编辑 httpd-vhosts.config

<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp/www
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

需要本地 要求所有授予 .当它是 Require local 时,它只能通过来自其他主机的 localhost 请求被拒绝。最后看起来像下面
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp/www
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

关于WampServer 3 在线禁止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38664752/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com