首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在WAMP主机上摆脱403-禁止-错误?

如何在WAMP主机上摆脱403-禁止-错误?
EN

Stack Overflow用户
提问于 2015-05-30 20:38:01
回答 1查看 114关注 0票数 0

我正在开发我的第一个网站,并在WAMP服务器上启动它,我运行的是Windows10,它工作得很好,直到操作系统有了更新;现在我收到了403禁止的信息;我如何摆脱WAMP主机上的403禁止错误?

代码语言:javascript
复制
ServerAdmin admin@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80

我需要做什么改变吗?

代码语言:javascript
复制
ServerRoot "c:/wamp/bin/apache/apache2.2.22"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80 

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2015-05-30 21:10:44

使用Windows的预览版作为开发环境有点危险。

检查Windows更新是否未将主机文件恢复为默认值

代码语言:javascript
复制
C:\windows\system32\drivers\etc\hosts

应至少包含:-

代码语言:javascript
复制
127.0.0.1  localhost
::1  localhost

确保它们没有在第1列中用#注释掉

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30546270

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档