简体   繁体   English

无法检索到请求的URL“ http:// localhost /” <!— ERR_ACCESS_DENIED --> 使用XAMPP

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

I deployed my PHP Web Application on XAMPP. 我在XAMPP上部署了PHP Web应用程序。 While it trying to retrieve the URL: http://localhost/ , I get this error: 当它尝试检索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 />

I've read other topics. 我读过其他主题。 I already taken some tips like bypass proxy in LAN Settings and don't use proxy for these address (127.0.0.1;localhost;) in advanced settings. 我已经采取了一些技巧,例如在“ LAN设置”中绕过代理,并且在高级设置中不对这些地址(127.0.0.1; localhost;)使用代理。

But I get the same error. 但是我得到了同样的错误。 I think that it need to do some configuration in XAMPP, but I don't know what set. 我认为它需要在XAMPP中进行一些配置,但是我不知道要设置什么。

Thanks all 谢谢大家

I solved it. 我解决了 There were two environment variables HTTP and HTTPS set with proxy. 使用代理设置了两个环境变量HTTP和HTTPS。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试使用 XAMPP 访问虚拟主机上的 Laravel 项目时无法检索请求的 URL - The requested URL could not be retrieved while trying to access Laravel project on Virtual Host with XAMPP 错误:无法检索到所请求的URL - ERROR: The requested URL could not be retrieved 使用http服务时访问xampp localhost文件 - access xampp localhost files when using http service 尝试访问虚拟主机上的 Laravel 项目时无法检索到请求的 URL - The requested URL could not be retrieved while trying to access Laravel project on Virtual Host xampp localhost phpmyadmin 用户 &#39;root&#39;@&#39;localhost&#39; 访问被拒绝(使用密码:YES) - xampp localhost phpmyadmin Access denied for user 'root'@'localhost' (using password: YES) 无法连接:用户&#39;root&#39;@&#39;localhost&#39;拒绝访问(使用密码:否) - Could not connect: Access denied for user 'root'@'localhost' (using password: NO) 无法更新数据:用户&#39;xxxx&#39;@&#39;localhost&#39;的访问被拒绝(使用密码:否) - Could not update data: Access denied for user 'xxxx'@'localhost' (using password: NO) 如何限制对http:// localhost / xampp /的访问 - How to limit access to http://localhost/xampp/ XAMPP-用户&#39;michael&#39;@&#39;localhost&#39;的访问被拒绝(使用密码:是)。 使用php文件连接到MySQL - XAMPP - Access denied for user 'michael'@'localhost' (using password: YES). Using a php file to connect to the MySQL 放在服务器上时未检索到JSON,但使用XAMPP可以在Localhost上工作 - JSON is not Retrieved When Put on the Server but Does Work on Localhost using XAMPP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM