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了

相關文章
相關標籤/搜索