簡體   English   中英

無法檢索到請求的URL“ http:// localhost /” <!— ERR_ACCESS_DENIED --> 使用XAMPP

[英]The requested URL could not be retrieved “http://localhost/” <!— ERR_ACCESS_DENIED --> using XAMPP

我在XAMPP上部署了PHP Web應用程序。 當它嘗試檢索URL: http:// localhost /時 ,出現此錯誤:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!--  %l  body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; float: right; }  --></style> </head><body> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr>  <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="http://localhost/api/rest.php">http://localhost/api/rest.php</a></p>  <blockquote id="error"> <p><b>Access Denied.</b></p> </blockquote>  <p>Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</p>  <p>Your cache administrator is <a href="mailto:helpdesk.proxy%W">helpdesk.proxy</a>.</p> <br> </div>  <hr> <div id="footer"> <p>Generated Thu, 17 Sep 2015 08:30:50 GMT by proxy.it (squid/2.7.STABLE9)</p> <!-- ERR_ACCESS_DENIED --> </div> </body></html> <br />

我讀過其他主題。 我已經采取了一些技巧,例如在“ LAN設置”中繞過代理,並且在高級設置中不對這些地址(127.0.0.1; localhost;)使用代理。

但是我得到了同樣的錯誤。 我認為它需要在XAMPP中進行一些配置,但是我不知道要設置什么。

謝謝大家

我解決了 使用代理設置了兩個環境變量HTTP和HTTPS。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM