xampp 访问出现New XAMPP security concept

搭建好xampp,输入网址http://192.168.110.205/xampp/,报错以下:php

New XAMPP security concept:html

Access to the requested object is only available from the local network.web

This setting can be configured in the file "httpd-xampp.conf".apache


 

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

Error 403

192.168.110.205
Apache/2.4.9 (Unix) OpenSSL/1.0.1g PHP/5.4.27 mod_perl/2.0.8-dev Perl/v5.16.3

 

 

 

 

解决方法:this

打开httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf)(注:个人文件路径在/opt/lampp/etc/extra/httpd-xampp.conf,经过locate 文件名或者find能够查找到)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]get

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

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

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

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

相关文章
相关标签/搜索