内容简介:翻译自:https://stackoverflow.com/questions/43614783/xampp-access-to-the-requested-object-is-only-available-from-the-local-network
当我尝试使用ip地址在另一台PC上访问xampp的phpMyAdmin时出现此错误:
Access forbidden! New XAMPP security concept: Access to the requested object is only available from the local network. This setting can be configured in the file “httpd-xampp.conf”.
我正在寻找解决方案,并找到一些建议,如修改httpd-xampp.conf文件.
1)选项是修改<LocationMatch>阻止这样:
<LocationMatch "^/(?i(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Allow from all
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
问题是我的httpd-xampp.conf文件不包含这样的块,但是如果我尝试将它添加到文件的末尾,我仍然会得到相同的错误.
2)选项是修改<Directory“C:/ xampp / phpMyAdmin”>如下:
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
要么
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
要么
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig Limit
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
这也没有解决问题.仍然得到同样的错误.
附:每次更改后我都会重启Apache!
有人能看到我可能遗失的东西吗?
我刚修好了!
请转到:
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
并更改所有内容如下:
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig Limit
Order allow,deny
Require all granted
Allow from all
</Directory>
翻译自:https://stackoverflow.com/questions/43614783/xampp-access-to-the-requested-object-is-only-available-from-the-local-network
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- SpringBoot中获取请求的Json格式并解决request的请求流只能读取一次的问题
- 谁说ParameterMap只能读不能写? 原 荐
- 社区最多只能有3层角色 原
- 双向最大匹配和实体标注:你以为我只能分词?
- Php 单一设备设置(一个账号只能一个设备登录)【原创】
- 请不要让码农只能活在青春里~
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Python语言程序设计
[美]梁勇(Lang Y. D.) / 李娜 / 机械工业出版社 / 2015-4 / 79.00元
本书采用“问题驱动”、“基础先行”和“实例和实践相结合”的方式,讲述如何使用Python语言进行程序设计。本书首先介绍Python程序设计的基本概念,接着介绍面向对象程序设计方法,最后介绍算法与数据结构方面的内容。为了帮助学生更好地掌握相关知识,本书每章都包括以下模块:学习目标,引言,关键点,检查点,问题,本章总结,测试题,编程题,注意、提示和警告。 本书可以作为高等院校计算机及相关专业Py......一起来看看 《Python语言程序设计》 这本书的介绍吧!