xampp 訪問出現New XAMPP security concept


在瀏覽器輸入 http://60.10.140.22/xampp出現以下錯誤信息:

Access forbidden!


New XAMPP security concept:

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

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


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

Error 403192.168.1.55
2011/4/11 11:17:18
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1

 

解決方法:

打開httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf)

#
# 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>

注:Deny from all注釋掉,變成: #Deny from all

注:需要重啟apache[/opt/lampp/lampp restartapache]

就可以遠程登錄xampp了,通過外網登陸本地xampp了。

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

新版本可能是用下面的這個方法:

# Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
正解方法是注掉本地訪問這行,如下:
#Require local
最后,重啟啟動lampp,OK了,哈哈

root@××××××:/opt/lampp# ./lampp restart


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM