我正在开发我的第一个网站,并在WAMP服务器上启动它,我运行的是Windows10,它工作得很好,直到操作系统有了更新;现在我收到了403禁止的信息;我如何摆脱WAMP主机上的403禁止错误?
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我需要做什么改变吗?
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 谢谢!
发布于 2015-05-30 21:10:44
使用Windows的预览版作为开发环境有点危险。
检查Windows更新是否未将主机文件恢复为默认值
C:\windows\system32\drivers\etc\hosts应至少包含:-
127.0.0.1 localhost
::1 localhost确保它们没有在第1列中用#注释掉
https://stackoverflow.com/questions/30546270
复制相似问题