PHP的-Wamp服务器:更改httpd.conf的Apache?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了PHP的-Wamp服务器:更改httpd.conf的Apache?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2793字,纯文字阅读大概需要4分钟。
内容图文
![PHP的-Wamp服务器:更改httpd.conf的Apache?](/upload/InfoBanner/zyjiaocheng/693/f32400dbc2b14624887e70a55d2b5208.jpg)
我正在尝试用我的错误解决错误,我无法从服务器连接到我的android应用程序.
所有消息来源都将我引向following tutorial作为解决方案.
除了以下方面,我已经成功完成了本教程中的所有步骤:
编辑Wamp服务器的httpd.conf文件
即本教程指示以下内容:
4.在httpd.conf文件中找到此配置部分:
Directory “c:/wamp/www/”
#
# Possible values for the Options directive are “None”, “All”,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that “MultiViews” must be named *explicitly* — “Options All”
# doesn’t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag – don’t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
现在,找到“ 127.0.0.1”并将其替换为“全部”,保存文件并重新启动wamp服务器.
但是,我的问题是我的httpd.conf文件中没有此代码.我的相应部分如下所示:
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require all granted
</Directory>
我可以在代码中进行哪些更改以解决此问题?
一个解决方案将不胜感激,我已经被服务器问题困扰了一个多星期:(
解决方法:
知道这是古老的,但是它可以免除我尝试修复“禁止的国王错误”时遇到的压力,这使我在Google上摸不着头脑……多数民众赞成在403错误的情况下,如果您错误地认为自己一无所知我在说如果您这样做,那简直太棒了,而且很热!
*点击系统任务栏上的WAMP服务器图标(假设您使用的是Windows),然后-> Apache-> httpd.vhosts.conf [打开“ httpd.vhosts.conf”文件]
*并将“目录”标记(…)中的“需要本地”更改为“需要全部授予”
这应该是您要寻找的炸弹!
*再次单击WAMP图标,然后重新启动所有服务,然后最后进入“联机”状态.总而言之,你一切都好!
N.B
这绝对对您4有用,尤其是在按照有关如何通过修改防火墙设置(即通过添加新规则)并按照说明修改httpd.conf文件的方式将Android设备连接到Wamp服务器的在线教程之后,获取“禁止的错误”代号-403.
内容总结
以上是互联网集市为您收集整理的PHP的-Wamp服务器:更改httpd.conf的Apache?全部内容,希望文章能够帮你解决PHP的-Wamp服务器:更改httpd.conf的Apache?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。