php – XAMPP – 只能从本地网络访问所请求的对象

栏目: PHP · 发布时间: 6年前

内容简介:翻译自: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


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

交易系统

交易系统

武剑锋 / 上海人民出版社 / 2011-1 / 32.00元

《交易系统:更新与跨越》是中国第一部研究证券交易系统的专业著作,填补了这一领域的学术空白。既回顾和总结了系统规划、建设和上线过程中,技术管理、架构设计、应用调优、切换部署、运行维护等方面的经验和教训,也从较为宏观的角度描述了独具中国特色的交易技术支撑体系,特别是,通过分析其他资本市场交易系统的近年来发展历程和后续的技术发展规划,探索了未来业务创新和技术创新的大致框架和可能的模式。相信《交易系统:更......一起来看看 《交易系统》 这本书的介绍吧!

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具