xampp外網(wǎng)不能訪問的原因

當(dāng)局域網(wǎng)或外網(wǎng)訪問xampp時(shí),報(bào)如下錯(cuò)誤時(shí):

創(chuàng)新互聯(lián)公司電話聯(lián)系:028-86922220,為您提供成都網(wǎng)站建設(shè)網(wǎng)頁設(shè)計(jì)及定制高端網(wǎng)站建設(shè)服務(wù),創(chuàng)新互聯(lián)公司網(wǎng)頁制作領(lǐng)域10多年,包括活動(dòng)板房等多個(gè)方面擁有豐富設(shè)計(jì)經(jīng)驗(yàn),選擇創(chuàng)新互聯(lián)公司,為網(wǎng)站保駕護(hù)航!

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”. 
解決辦法:
打開httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf)
找到以下內(nèi)容:
版本內(nèi)容一:
  ======================================================================================================================= 
# New XAMPP security concept 

  
Order deny,allow 
Deny from all 
Allow from ::1 127.0.0.0/8 
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 
81.196.40.94/32 
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var 
  
   將Deny from all這一行注釋掉,即 
#Deny from all  
  ===================================================================== 
  版本內(nèi)容二: 
  ======================================================================================================= 
  # New XAMPP security concept 

  
     Require local 
     ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var 
  
  將Require local這一行注釋掉,即 
#Require local  
注:需要重啟apache[/opt/lampp/lampp restartapache]

分享標(biāo)題:xampp外網(wǎng)不能訪問的原因
地址分享:http://www.muchs.cn/article36/gehssg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)建站、軟件開發(fā)、靜態(tài)網(wǎng)站、自適應(yīng)網(wǎng)站、小程序開發(fā)、品牌網(wǎng)站設(shè)計(jì)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁設(shè)計(jì)公司