解决 Access to the requested object is only available from the local network

linux的lamp集成环境安装后,访问localhost不能访问phpmyadmin

,要修改/opt/lampp/etc/extra路径下的http-xampp.conf配置文件,将文件最后的LocationMatch节点修改成下面,重启 xampp服务即可:

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Order deny,allow
        Allow from all
        Require all granted
           
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

发表评论

您的电子邮箱地址不会被公开。

(Spamcheck Enabled)