【问题标题】:Xampp OS X 5.5.37 unable to remote accessXampp OS X 5.5.37 无法远程访问
【发布时间】:2016-08-09 16:26:56
【问题描述】:

我刚刚升级了 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>

请帮忙!

【问题讨论】:

    标签: php apache xampp


    【解决方案1】:

    这是我解决问题的方法:

    找到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>
    

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

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

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

    【讨论】:

    • 工作得很好。谢谢
    猜你喜欢
    • 1970-01-01
    • 2011-08-13
    • 2014-07-23
    • 1970-01-01
    • 2022-01-05
    • 2014-10-24
    • 2013-12-27
    • 2020-03-11
    • 1970-01-01
    相关资源
    最近更新 更多