XAMPP - 只能从本地网络访问所请求的对象
当我尝试使用IP地址在另一台PC中访问xampp的phpMyAdmin时,我收到此错误:
禁止访问!
新的 XAMPP 安全概念:
只能从本地网络访问所请求的对象。
此设置可以在文件“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!
有人能看到我可能错过了什么吗?