New XAMPP security concept

New XAMPP security concept

在新的Xampp版本中,针对localhost/phpmyadmin会出现如下错误:

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".

If you think this is a server error, please contact the webmaster.

Error 403

localhost

解决办法是:

  • 编辑/opt/lampp/etc/extra/httpd-xampp.conf
  • 找到下面一行: <Directory "/opt/lampp/phpmyadmin">
  • 在下面的</Directory>之前添加:Require all granted
  • 添加完成之后的结果类似于:
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

你可能感兴趣的:(New XAMPP security concept)