现象描述Xampp OS X 5.5.37无法远程访问


Xampp OS X 5.5.37 unable to remote access

我刚刚为MariaDB升级了xampp 5.5.37,但我无法设置远程访问我的htdocs。在这个新版本的httpd-xampp.conf中,我找不到这些行:

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    #Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

请帮忙!

我是这样解决这个问题的:

查找httpd.conf,修改如下:

DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
<Directory "/Applications/XAMPP/xamppfiles/htdocs">
    Options Indexes FollowSymLinks ExecCGI Includes
    AllowOverride All
    # Require local # comment this out and add 
    Require all granted
</Directory>

找到httpd-xampp.conf,如果你想允许phpmyadmin,然后修改如下:

<Directory "/Applications/XAMPP/xamppfiles/phpmyadmin">
    AllowOverride AuthConfig Limit
    #Require local
    Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

如果这个不工作,意味着问题是路由器或防火墙。由于我不是专家,我不知道这个变化会影响安全风险!