搭建好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
解決方法: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,