xampp 访问出现New XAMPP security concept 解决办法

最近经过手机访问本地服务器时出现如下问题:php

Access forbidden!html


New XAMPP security concept:web

Access to the requested directory is only available from the local network.apache

This setting can be configured in the file "httpd-xampp.conf".服务器


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

 

 

解决方法:this

打开httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf)rest

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
   #Deny from all
    Allow from 127.0.0.0/8
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>server

注:Deny from all注释掉,变成: #Deny from allhtm

注:须要重启apache[/opt/lampp/lampp restartapache]

就能够远程登陆xampp了,经过外网登录本地xampp了。

--------------------------------------------------------------------------------

新版本多是用下面的这个方法:

# Require localErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var正解方法是注掉本地访问这行,以下: #Require local最后,重启启动xampp,OK了

相关文章
相关标签/搜索