【问题标题】:The requested URL could not be retrieved "http://localhost/" <!-- ERR_ACCESS_DENIED --> using XAMPP无法使用 XAMPP 检索请求的 URL “http://localhost/” <!-- ERR_ACCESS_DENIED -->
【发布时间】:2015-12-14 02:19:59
【问题描述】:

我在 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中进行一些配置,但我不知道设置什么。

谢谢大家

【问题讨论】:

标签: php rest proxy xampp localhost


【解决方案1】:

我解决了。使用代理设置了两个环境变量 HTTP 和 HTTPS。

【讨论】:

  • 谁能简单解释一下上面的答案?
猜你喜欢
  • 2018-01-17
  • 2017-11-16
  • 2023-03-12
  • 1970-01-01
  • 2012-08-12
  • 2018-11-28
  • 2021-09-27
  • 1970-01-01
  • 2012-11-09
相关资源
最近更新 更多