2014-11-14 89 views
0

我僱用了一個旨在託管網站的VPS(Windows Server 2008)。 所以我配置IIS 7.5運行一個HTML網站。 該網站從端口3000IIS無法從node.js讀取數據(HTTP GET請求)應用程序

在另一方面同VPS運行一個小的Node.js應用程序讀取數據(HTTP GET請求),對於每一個GET調用我得到:

failed to load resource the server responded with a status of 404 (not found) 

回答

1

好吧,我的錯。我需要從

$.get("/myfunction", function(data) { 
}); 

更改HTTP請求

$.get("http://localhost:3000/myfunction", function(data) { 
}); 
+0

這個解決方案的問題是,HTTPS調用只能從VPS中工作,而不是從外面。 – Egidi 2014-11-14 17:53:59