Php 无法检索请求的URL";http://localhost/" <;!--错误访问被拒绝-->;使用XAMPP

Php 无法检索请求的URL";http://localhost/" <;!--错误访问被拒绝-->;使用XAMPP,php,rest,proxy,xampp,localhost,Php,Rest,Proxy,Xampp,Localhost,我在XAMPP上部署了我的PHP Web应用程序。当它试图检索URL:时,出现以下错误: <!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

我在XAMPP上部署了我的PHP Web应用程序。当它试图检索URL:时,出现以下错误:

<!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 />
错误:无法检索请求的URL错误无法检索请求的URL
尝试检索URL时遇到以下错误:

访问被拒绝。

访问控制配置阻止此时允许您的请求。如果您觉得这不正确,请联系您的服务提供商。

您的缓存管理员是。



由proxy.it(squid/2.7.STABLE9)于2015年9月17日星期四08:30:50 GMT生成。


我读过其他的话题。我已经学习了一些技巧,比如在LAN设置中绕过代理,在高级设置中不要对这些地址(127.0.0.1;localhost;)使用代理

但我也犯了同样的错误。 我认为它需要在XAMPP中进行一些配置,但我不知道设置了什么


谢谢大家

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

您试图打开吗@vincentI正在尝试从localhost打开一个url。在本主题中,我故意删除了url的一部分。完整的url是Do index.php是否正在打开?我的意思是任何基本页面正在打开??请共享您试图访问的文件内容。以及它的相对文件夹位置@文森特:有人能简单地解释一下上述答案吗?