2014-11-14 40 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