我知道这个问题已经有其他话题了,但是我尝试了所有解决方案,但没有用。基本上,我尝试了“全部允许”方法,我也提供了IP,但它仍然无法正常工作,我真的不明白为什么,因为上一次它有效。我将CentOS 7与phpMyAdmin / Apache 2.4一起使用,这是我的配置
<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<RequireAny>
Require ip HOME_IP
</RequireAny>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip HOME_IP
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Allow from All
Allow from HOME_IP
Allow from ::1
</IfModule>
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip HOME_IP
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Allow from All
</IfModule>
</Directory>