2015-09-17 92 views
1

我在XAMPP上部署了我的PHP Web應用程序。雖然試圖檢索網址:http://localhost/,我得到這個錯誤:使用XAMPP無法檢索請求的URL「http:// localhost /」<! - ERR_ACCESS_DENIED - >

<!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 /> 

我讀過的其他議題。我已經在局域網設置中採用了類似繞過代理的一些提示,並且不要在高級設置中使用這些地址(127.0.0.1; localhost;)的代理。

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

謝謝全部

+0

你試圖打開http://localhost/api/rest.php ??? @vincent –

+0

我想從本地打開一個url。在這個主題中,我故意刪除了一部分url。完整的網址是http://localhost/test/folder1/api/rest.php – vincentdj

+0

index.php是否開放?我的意思是任何基本頁面正在打開? –

回答

0

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

相關問題